From 066f72048416bf700182903635c68069fea9ec8a Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 8 May 2026 11:50:45 +0200 Subject: [PATCH] feat: add gc config --- templates/zot/config.json.j2 | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/templates/zot/config.json.j2 b/templates/zot/config.json.j2 index 18262a7..01d5a24 100644 --- a/templates/zot/config.json.j2 +++ b/templates/zot/config.json.j2 @@ -1,7 +1,23 @@ { "distSpecVersion": "1.1.1", "storage": { - "rootDirectory": "/var/lib/zot" + "rootDirectory": "/var/lib/zot", + "gc": true, + "gcDelay": "1h", + "gcInterval": "24h", + "retention": { + "delay": "24h", + "policies": [ + { + "repositories": ["**"], + "deleteReferrers": true, + "deleteUntagged": true, + "keepTags": [{ + "pulledWithin": "60d" + }] + } + ] + } }, "http": { "address": "127.0.0.1",