fix: zot config with pull through

This commit is contained in:
Simon Cornet 2026-05-08 09:13:58 +02:00
commit 44d7bb0c85

View file

@ -1,27 +1,7 @@
{
"distSpecVersion": "1.1.1",
"storage": {
"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
}
}
}
"rootDirectory": "/var/lib/zot"
},
"http": {
"address": "127.0.0.1",
@ -39,6 +19,37 @@
"cve": {
"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"
}
]
}
]
}
}
}