pkg/storage/image: set insecure only on docker transport
fix
@@ -372,10 +372,12 @@ func (svc *imageService) prepareReference(imageName string, options *copy.Option
options.SourceCtx = &types.SystemContext{}
}
+ if srcRef.DockerReference() != nil {
hostname := reference.Domain(srcRef.DockerReference())
if secure := svc.isSecureIndex(hostname); !secure {
options.SourceCtx.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!secure)
}
+ }
return srcRef, nil
}
