Skip to content

Commit 5b62060

Browse files
committed
do not mirror on localhost
1 parent d685f27 commit 5b62060

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

util/resolver/resolver.go

+3
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ func NewRegistryConfig(m map[string]config.RegistryConfig) docker.RegistryHosts
124124
mirrorHost := "localhost:8080"
125125
return docker.Registries(
126126
func(host string) ([]docker.RegistryHost, error) {
127+
if ok, _ := docker.MatchLocalhost(host); ok {
128+
return nil, nil
129+
}
127130
c, ok := m[host]
128131
if !ok {
129132
c = config.RegistryConfig{}

0 commit comments

Comments
 (0)