From c2444912b847bb8650a71dd0e702178c7f8dabd4 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 22 Feb 2023 18:10:51 +0100 Subject: [PATCH] the image is a volume... Signed-off-by: Zoey --- Containers/mastercontainer/cron.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Containers/mastercontainer/cron.sh b/Containers/mastercontainer/cron.sh index 82fa4dc7..dc9170b1 100644 --- a/Containers/mastercontainer/cron.sh +++ b/Containers/mastercontainer/cron.sh @@ -54,7 +54,7 @@ while true; do sudo -u www-data docker image prune --force # Remove dangling volumes - for image in $(docker volume ls --quiet --filter dangling=true | grep -E "^[a-z0-9]{64}$"); do docker volume remove "$image"; done + for volume in $(docker volume ls --quiet --filter dangling=true | grep -E "^[a-z0-9]{64}$"); do docker volume remove "$volume"; done # Wait 60s so that the whole loop will not be executed again sleep 60