Skip to content

Commit 7a03f8f

Browse files
iQQBotkylos101
authored andcommitted
do not mirror on localhost
1 parent 27fd8d8 commit 7a03f8f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: util/resolver/resolver.go

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

0 commit comments

Comments
 (0)