From a9ecfee2e6a070e9ce98e81eef82fc378f6e9afa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Eichhorn?= <60842330+unclej84@users.noreply.github.com> Date: Thu, 10 Dec 2020 20:09:10 +0100 Subject: [PATCH] Update stack-prune.yml Add filter for prune command to prune only older than 24h --- stack-prune.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack-prune.yml b/stack-prune.yml index 3d9fce8..2100f6e 100644 --- a/stack-prune.yml +++ b/stack-prune.yml @@ -13,7 +13,7 @@ services: image-prune: <<: *default-opts image: docker - command: sh -c "while true; do docker image prune -af; sleep 86400; done" + command: sh -c "while true; do docker image prune -af --filter \"until=24h\"; sleep 86400; done" networks: - bridge volumes: