We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa19ade commit 31dc33cCopy full SHA for 31dc33c
1 file changed
services
@@ -130,8 +130,16 @@ startContainers () {
130
}
131
132
stoppingContainers () {
133
- echo "Stopping running containers"
134
- ${dockerCmd} down -v --remove-orphans
+ CONTAINERS=$(docker ps -aq)
+ if [[ -n $CONTAINERS ]]; then
135
+ echo "Stopping containers"
136
+ docker rm -f $CONTAINERS
137
+ fi
138
+ VOLUMES=$(docker volume ls -qf dangling=true)
139
+ if [[ -n $VOLUMES ]]; then
140
+ echo "Removing old volumes"
141
+ docker volume rm $VOLUMES
142
143
144
145
command="$1"
0 commit comments