From 086f9b2c5827ea8a27b3a46c0e2e689085fc0a57 Mon Sep 17 00:00:00 2001 From: wangxiaoxuan273 Date: Thu, 20 Apr 2023 09:07:12 +0000 Subject: [PATCH] updated reference link Signed-off-by: wangxiaoxuan273 --- registry.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/registry.go b/registry.go index 2ba405a..0f6b5bb 100644 --- a/registry.go +++ b/registry.go @@ -78,7 +78,7 @@ func Credential(store Store) func(context.Context, string) (auth.Credential, err func mapStoreRegistryName(registry string) string { // The Docker CLI expects that the 'docker.io' credential // will be added under the key "https://index.docker.io/v1/" - // See: https://github.com/moby/moby/blob/master/registry/config.go#L25-L48 + // See: https://github.com/moby/moby/blob/v24.0.0-beta.2/registry/config.go#L25-L48 if registry == "docker.io" { return "https://index.docker.io/v1/" } @@ -88,7 +88,7 @@ func mapStoreRegistryName(registry string) string { func mapAuthenticationRegistryName(hostname string) string { // It is expected that the traffic targetting "registry-1.docker.io" // will be redirected to "https://index.docker.io/v1/" - // See: https://github.com/moby/moby/blob/master/registry/config.go#L25-L48 + // See: https://github.com/moby/moby/blob/v24.0.0-beta.2/registry/config.go#L25-L48 if hostname == "registry-1.docker.io" { return "https://index.docker.io/v1/" }