mirror of
https://github.com/containers/podman.git
synced 2025-06-27 21:50:18 +08:00
Fix pulling from secure registry
when pulling from a secure registry that is documented in registries.conf, we should be able to pull without tls-verify=false Signed-off-by: baude <bbaude@redhat.com> Closes: #718 Approved by: rhatdan
This commit is contained in:
@ -186,7 +186,7 @@ func (i *Image) pullImage(ctx context.Context, writer io.Writer, authfile, signa
|
||||
|
||||
for _, imageInfo := range pullStructs {
|
||||
copyOptions := getCopyOptions(writer, signaturePolicyPath, dockerOptions, nil, signingOptions, authfile, "", false)
|
||||
if imageInfo.srcRef.Transport().Name() == DockerTransport {
|
||||
if strings.HasPrefix(DockerTransport, imageInfo.srcRef.Transport().Name()) {
|
||||
imgRef, err := reference.Parse(imageInfo.srcRef.DockerReference().String())
|
||||
if err != nil {
|
||||
return "", err
|
||||
|
Reference in New Issue
Block a user