fix: zot config with pull through
This commit is contained in:
parent
f74d10c5c7
commit
44d7bb0c85
1 changed files with 32 additions and 21 deletions
|
|
@ -1,27 +1,7 @@
|
||||||
{
|
{
|
||||||
"distSpecVersion": "1.1.1",
|
"distSpecVersion": "1.1.1",
|
||||||
"storage": {
|
"storage": {
|
||||||
"rootDirectory": "/var/lib/zot",
|
"rootDirectory": "/var/lib/zot"
|
||||||
"subPaths": {
|
|
||||||
"/dockerhub": {
|
|
||||||
"rootDirectory": "/var/lib/zot/dockerhub",
|
|
||||||
"mirror": {
|
|
||||||
"registries": ["https://registry-1.docker.io"],
|
|
||||||
"remoteURL": "https://registry-1.docker.io",
|
|
||||||
"onDemand": true,
|
|
||||||
"tlsVerify": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/ghcr": {
|
|
||||||
"rootDirectory": "/var/lib/zot/ghcr",
|
|
||||||
"mirror": {
|
|
||||||
"registries": ["https://ghcr.io"],
|
|
||||||
"remoteURL": "https://ghcr.io",
|
|
||||||
"onDemand": true,
|
|
||||||
"tlsVerify": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"http": {
|
"http": {
|
||||||
"address": "127.0.0.1",
|
"address": "127.0.0.1",
|
||||||
|
|
@ -39,6 +19,37 @@
|
||||||
"cve": {
|
"cve": {
|
||||||
"updateInterval": "24h"
|
"updateInterval": "24h"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"sync": {
|
||||||
|
"enable": true,
|
||||||
|
"registries": [
|
||||||
|
{
|
||||||
|
"urls": ["https://registry-1.docker.io"],
|
||||||
|
"onDemand": true,
|
||||||
|
"tlsVerify": true,
|
||||||
|
"maxRetries": 3,
|
||||||
|
"retryDelay": "5m",
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"prefix": "**",
|
||||||
|
"destination": "/dockerhub"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"urls": ["https://ghcr.io"],
|
||||||
|
"onDemand": true,
|
||||||
|
"tlsVerify": true,
|
||||||
|
"maxRetries": 3,
|
||||||
|
"retryDelay": "5m",
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"prefix": "**",
|
||||||
|
"destination": "/ghcr"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue