Skip to content

Commit af78548

Browse files
iQQBotkylos101
authored andcommitted
do not mirror on localhost
1 parent 9066d5e commit af78548

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
@@ -120,6 +120,9 @@ func NewRegistryConfig(m map[string]config.RegistryConfig) docker.RegistryHosts
120120
mirrorHost := "localhost:8080"
121121
return docker.Registries(
122122
func(host string) ([]docker.RegistryHost, error) {
123+
if ok, _ := docker.MatchLocalhost(host); ok {
124+
return nil, nil
125+
}
123126
c, ok := m[host]
124127
if !ok {
125128
c = config.RegistryConfig{}

0 commit comments

Comments
 (0)