From 725961efc94e09984d351808a821ff79ece6b4c3 Mon Sep 17 00:00:00 2001 From: Davlet Panech Date: Mon, 18 Sep 2023 15:22:53 -0400 Subject: [PATCH] stop-containers: prune minikube volumes Prune minikube volumes in addition to orphans & build cache. Closes-Bug: 2020807 Signed-off-by: Davlet Panech Change-Id: If1dcc157e1ce6171779f8143f6fbb7cbd0d02676 --- scripts/stop-containers.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/stop-containers.sh b/scripts/stop-containers.sh index fb7f474..6a83c87 100755 --- a/scripts/stop-containers.sh +++ b/scripts/stop-containers.sh @@ -21,13 +21,12 @@ fi load_build_env stx control stop || true - # Prune minikube's docker, then stop minikube's top-level container if [[ "$STX_PLATFORM" == "minikube" ]] ; then profile_args=() [[ -z "$MINIKUBENAME" ]] || profile_args+=("-p" "$MINIKUBENAME") if minikube "${profile_args[@]}" status >/dev/null ; then - minikube "${profile_args[@]}" ssh -- 'docker system prune -f' + minikube "${profile_args[@]}" ssh -- 'docker system prune --volumes --force' minikube "${profile_args[@]}" stop fi fi