Skip to content

Commit

Permalink
Merge pull request #4293 from vvoland/fix-mirrors-hostname
Browse files Browse the repository at this point in the history
util/resolver: Fix insecure mirrors
  • Loading branch information
tonistiigi authored Sep 29, 2023
2 parents e5afd84 + ec65557 commit b9fcd76
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions util/resolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,10 @@ func NewRegistryConfig(m map[string]config.RegistryConfig) docker.RegistryHosts

var out []docker.RegistryHost

for _, mirror := range c.Mirrors {
h := newMirrorRegistryHost(mirror)
hosts, err := fillInsecureOpts(mirror, m[mirror], h)
for _, rawMirror := range c.Mirrors {
h := newMirrorRegistryHost(rawMirror)
mirrorHost := h.Host
hosts, err := fillInsecureOpts(mirrorHost, m[mirrorHost], h)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit b9fcd76

Please sign in to comment.