From 278d2b3150d2245923d4818e3095f1e80ca75fab Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 8 May 2026 09:10:35 +0200 Subject: [PATCH] feat: add dockerhub and ghcr as pull through --- templates/zot/config.json.j2 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/templates/zot/config.json.j2 b/templates/zot/config.json.j2 index 85c30b0..164019b 100644 --- a/templates/zot/config.json.j2 +++ b/templates/zot/config.json.j2 @@ -1,7 +1,27 @@ { "distSpecVersion": "1.1.1", "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": { "address": "127.0.0.1",