Also allow providing the port
@@ -99,7 +99,8 @@ func (f *RemoteClientFactory) ClientFor(repo image.CanonicalName, creds Credenti
}
insecure := false
for _, h := range f.InsecureHosts {
- if repoHost == h {
+ if repoHost == h || repo.Domain == h {
+ // allow host with out without the port in the insecure hosts list
insecure = true
break
}
