Add aggressive docker image cleanup to prevent disk full (#5841)

The existing cleanup only removed dangling images. Now also removes
images older than 24h to prevent disk space exhaustion while keeping
recent images available for rollback.

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 09:10:35 -08:00
committed by GitHub
co-authored by Claude Opus 4.5
parent e020a0f66c
commit ddbc960945
+3 -1
View File
@@ -401,7 +401,9 @@ jobs:
fi
echo "Admin image verification passed"
# Cleanup
# Cleanup - remove old images to prevent disk full
docker container prune -f
docker image prune -f
# Remove images older than 24h (keeps recent images for rollback)
docker image prune -a -f --filter "until=24h" || true
DEPLOY_SCRIPT