We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c78361d commit 45d5258Copy full SHA for 45d5258
1 file changed
services
@@ -54,8 +54,16 @@ startContainers () {
54
}
55
56
stoppingContainers () {
57
- echo "Stopping running containers"
58
- ${dockerCmd} down -v --remove-orphans
+ CONTAINERS=$(docker ps -aq)
+ if [[ -n $CONTAINERS ]]; then
59
+ echo "Stopping containers"
60
+ docker rm -f $CONTAINERS
61
+ fi
62
+ VOLUMES=$(docker volume ls -qf dangling=true)
63
+ if [[ -n $VOLUMES ]]; then
64
+ echo "Removing old volumes"
65
+ docker volume rm $VOLUMES
66
67
68
69
command="$1"
0 commit comments