From d1cf5439f152d595d1710a14da6fbb631a448030 Mon Sep 17 00:00:00 2001 From: Lorenzo Dalrio Date: Thu, 27 Apr 2023 09:38:24 +0200 Subject: [PATCH] Avoid exited containers proliferation When running the `pattern.sh` script multiple times, a lot of podman exited containers will be left on the machine, adding `--rm` parameter to `podman run` makes podman automatically delete the exited containers leaving the machine cleaner. --- scripts/pattern-util.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pattern-util.sh b/scripts/pattern-util.sh index 82416a2d..149e8af7 100755 --- a/scripts/pattern-util.sh +++ b/scripts/pattern-util.sh @@ -27,7 +27,7 @@ fi # Do not quote the ${KUBECONF_ENV} below, otherwise we will pass '' to podman # which will be confused -podman run -it \ +podman run -it --rm \ --security-opt label=disable \ ${KUBECONF_ENV} \ -v "${HOME}":"${HOME}" \