BjornMagnussonXA | 90b0974 | 2019-04-16 12:10:40 +0000 | [diff] [blame] | 1 | #!/bin/bash |
BjornMagnussonXA | 90b0974 | 2019-04-16 12:10:40 +0000 | [diff] [blame] | 2 | # Kill dfc and all simulator |
| 3 | |
TamasBakai | e81736c | 2019-08-23 13:31:57 +0000 | [diff] [blame^] | 4 | running_containers=$(docker ps --filter name=dfc_ -q) |
| 5 | |
| 6 | |
| 7 | if [ -z "$running_containers" ] |
| 8 | then |
| 9 | echo "No container requires termination" |
| 10 | else |
| 11 | echo "Stopping and removing containers" |
| 12 | docker stop $running_containers |
| 13 | docker rm $running_containers |
| 14 | fi |
BjornMagnussonXA | 90b0974 | 2019-04-16 12:10:40 +0000 | [diff] [blame] | 15 | |