From d9f98514242c35a2b2c39aeb0fd0226931a18c02 Mon Sep 17 00:00:00 2001 From: Alexander Arzhanov Date: Thu, 16 Feb 2017 16:56:09 +0300 Subject: [PATCH] Fix obsolete --all flag and add -v flag Flag --all is obsolete. This is now the default behavior of `docker-compose rm`. Remove it. Add flag -v. Remove any anonymous volumes\ attached to containers. --- dind-up-cluster.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dind-up-cluster.sh b/dind-up-cluster.sh index 3f5a62e..9524b09 100755 --- a/dind-up-cluster.sh +++ b/dind-up-cluster.sh @@ -229,7 +229,7 @@ function dind::kube-down { dind::step "Stopping dind cluster" # Since restoring a stopped cluster is not yet supported, use the nuclear option dind::docker_compose kill - dind::docker_compose rm -f --all + dind::docker_compose rm -f -v } # Waits for a kube-system pod (of the provided name) to have the phase/status "Running". @@ -290,4 +290,4 @@ if [ $(basename "$0") = dind-up-cluster.sh ]; then elif [ $(basename "$0") = dind-down-cluster.sh ]; then source "${DIND_ROOT}/config.sh" dind::kube-down -fi \ No newline at end of file +fi