feat: add gc config
This commit is contained in:
parent
2c415e8bdc
commit
066f720484
1 changed files with 17 additions and 1 deletions
|
|
@ -1,7 +1,23 @@
|
||||||
{
|
{
|
||||||
"distSpecVersion": "1.1.1",
|
"distSpecVersion": "1.1.1",
|
||||||
"storage": {
|
"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": {
|
"http": {
|
||||||
"address": "127.0.0.1",
|
"address": "127.0.0.1",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue