Commit 707712013f2d2e449a1756057c7054a651820766
1 parent
2eaa992fbd
Exists in
master
and in
4 other branches
Only show KEA containers when running docker ps -a
Showing 2 changed files with 9 additions and 2 deletions
delete.sh
View file @
7077120
... | ... | @@ -6,5 +6,12 @@ |
6 | 6 | sleep 5s |
7 | 7 | |
8 | 8 | # Check that containers were removed succesfully |
9 | -docker ps -a | |
9 | +res=`docker ps -a | grep "/curex-local/kea_" | wc -l` | |
10 | +if [ $res -eq 0 ]; then | |
11 | + echo "All KEA docker containers have been stopped and removed." | |
12 | +else | |
13 | + echo "ERROR: Some KEA containers have not been removed." | |
14 | + docker ps -a | |
15 | + exit 1 | |
16 | +fi |