From bd7b21f3dc9e31becf0ed0b5825cd44f1ce68f43 Mon Sep 17 00:00:00 2001 From: Poulpatine Date: Fri, 30 Jun 2023 20:53:10 +0200 Subject: [PATCH] docs: Add example for various popular public registries (#1550) Signed-off-by: Poulpatine --- examples/config-popular-registries.json | 99 +++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 examples/config-popular-registries.json diff --git a/examples/config-popular-registries.json b/examples/config-popular-registries.json new file mode 100644 index 00000000..107512ef --- /dev/null +++ b/examples/config-popular-registries.json @@ -0,0 +1,99 @@ +{ + "distSpecVersion": "1.1.0-dev", + "storage": { + "rootDirectory": "/data" + }, + "http": { + "address": "0.0.0.0", + "port": "5000" + }, + "log": { + "level": "info" + }, + "extensions": { + "sync": { + "credentialsFile": "/config/credentials.json", + "enable": true, + "registries": [ + { + "urls": [ + "https://docker.io/library" + ], + "content": [ + { + "destination": "/docker.io", + "prefix": "**" + } + ], + "onDemand": true, + "tlsVerify": true + }, + { + "urls": [ + "https://registry.gitlab.com" + ], + "content": [ + { + "destination": "/registry.gitlab.com", + "prefix": "**" + } + ], + "onDemand": true, + "tlsVerify": true + }, + { + "urls": [ + "https://ghcr.io" + ], + "content": [ + { + "destination": "ghcr.io", + "prefix": "**" + } + ], + "onDemand": true, + "tlsVerify": true + }, + { + "urls": [ + "https://quay.io" + ], + "content": [ + { + "destination": "/quay.io", + "prefix": "**" + } + ], + "onDemand": true, + "tlsVerify": true + }, + { + "urls": [ + "https://gcr.io" + ], + "content": [ + { + "destination": "/gcr.io", + "prefix": "**" + } + ], + "onDemand": true, + "tlsVerify": true + }, + { + "urls": [ + "https://registry.k8s.io" + ], + "content": [ + { + "destination": "/registry.k8s.io", + "prefix": "**" + } + ], + "onDemand": true, + "tlsVerify": true + } + ] + } + } +}