mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user