feat(retention): added image retention policies (#1866)

feat(metaDB): add more image statistics info

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
peusebiu
2023-11-01 18:16:18 +02:00
committed by GitHub
parent a79d79a03a
commit 9074f8483b
71 changed files with 3454 additions and 745 deletions
+11 -3
View File
@@ -34,10 +34,18 @@ function setup_file() {
"storage": {
"rootDirectory": "${zot_root_dir}",
"gc": true,
"gcReferrers": true,
"gcDelay": "30s",
"untaggedImageRetentionDelay": "40s",
"gcInterval": "1s"
"gcInterval": "1s",
"retention": {
"delay": "40s",
"policies": [
{
"repositories": ["**"],
"deleteReferrers": true,
"deleteUntagged": true
}
]
}
},
"http": {
"address": "0.0.0.0",