We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca94881 commit 44a75e0Copy full SHA for 44a75e0
1 file changed
services
@@ -36,8 +36,16 @@ loadData () {
36
}
37
38
stoppingContainers () {
39
- echo "Stopping running containers"
40
- ${dockerCmd} down -v --remove-orphans
+ CONTAINERS=$(docker ps -aq)
+ if [[ -n $CONTAINERS ]]; then
41
+ echo "Stopping containers"
42
+ docker rm -f $CONTAINERS
43
+ fi
44
+ VOLUMES=$(docker volume ls -qf dangling=true)
45
+ if [[ -n $VOLUMES ]]; then
46
+ echo "Removing old volumes"
47
+ docker volume rm $VOLUMES
48
49
50
51
displayServices () {
0 commit comments