From: Zack Cerza Date: Tue, 22 Apr 2025 16:19:23 +0000 (-0600) Subject: setup_container_runtime.sh: Prune more images X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5eaced8d0a36d8f193688250864f4fcb9332f392;p=ceph-build.git setup_container_runtime.sh: Prune more images Only leave one weeks' worth. Signed-off-by: Zack Cerza --- diff --git a/scripts/setup_container_runtime.sh b/scripts/setup_container_runtime.sh index 95bd3f53..8235d705 100755 --- a/scripts/setup_container_runtime.sh +++ b/scripts/setup_container_runtime.sh @@ -33,7 +33,7 @@ function setup_container_runtime () { if [ -d $PODMAN_STORAGE_DIR ]; then sudo chgrp -R $(groups | cut -d' ' -f1) $PODMAN_STORAGE_DIR if [ $(podman unshare du -s --block-size=1G $PODMAN_STORAGE_DIR | awk '{print $1}') -ge 50 ]; then - time podman image prune --filter=until="$(echo '24*7*2' | bc)h" --all --force + time podman image prune --filter=until="$(echo '24*7' | bc)h" --all --force time podman system prune --force test "$PODMAN_MAJOR_VERSION" -ge 5 && time podman system check --repair --quick fi