Insecure is now honored

This commit is contained in:
tralexa
2019-06-02 12:24:22 +03:00
committed by GitHub
parent 2fc8a7f4bc
commit 66a052255f
+1 -1
View File
@@ -59,7 +59,7 @@ func (rc *RegistryCache) RetrieveLayer(ck string) (v1.Image, error) {
}
registryName := cacheRef.Repository.Registry.Name()
if rc.Opts.InsecureRegistries.Contains(registryName) {
if rc.Opts.Insecure || rc.Opts.InsecureRegistries.Contains(registryName) {
newReg, err := name.NewInsecureRegistry(registryName, name.WeakValidation)
if err != nil {
return nil, err