From 260bfa8fb62678126e4ba354569bdabbd6ed989a Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 26 Sep 2023 19:58:51 +0200 Subject: [PATCH] prune system and not images --- files/docker-prune-dangling-images.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/files/docker-prune-dangling-images.sh b/files/docker-prune-dangling-images.sh index 74cc4f6..d22e905 100644 --- a/files/docker-prune-dangling-images.sh +++ b/files/docker-prune-dangling-images.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash -docker image prune --force > /var/log/docker-prune.log 2>&1 +# "system" prune, because pruning images only leaves a lot of garbage around +docker system prune --force > /var/log/docker-prune.log 2>&1 exit 0