From fdaa0eb5f937e6e2e33ef68ee43350857579f2f4 Mon Sep 17 00:00:00 2001 From: Johan Bloemberg Date: Wed, 9 Oct 2024 10:29:36 +0200 Subject: [PATCH] Remove all images not used by containers on a weekly basis to prevent /var becoming to full --- docker/docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index b83bdee3e..19bb7a127 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -1131,8 +1131,8 @@ configs: content: | #!/bin/sh set -e - # remove unused images, force to skip confirm prompt - docker image prune --force + # remove unused images, --all to remove images not used by containers, --force to skip confirm prompt + docker image prune --all --force networks: # disable default network