diff --git a/pkg/machine/ocipull/ociartifact.go b/pkg/machine/ocipull/ociartifact.go index 5a17e6abe8..d7fd2c57ec 100644 --- a/pkg/machine/ocipull/ociartifact.go +++ b/pkg/machine/ocipull/ociartifact.go @@ -229,8 +229,9 @@ func (o *OCIArtifactDisk) getDestArtifact() (types.ImageReference, digest.Digest return nil, "", err } fmt.Printf("Looking up Podman Machine image at %s to create VM\n", imgRef.DockerReference()) - sysCtx := &types.SystemContext{ - DockerInsecureSkipTLSVerify: o.pullOptions.skipTLSVerify, + sysCtx, err := o.pullOptions.systemContext() + if err != nil { + return nil, "", err } imgSrc, err := imgRef.NewImageSource(o.ctx, sysCtx) if err != nil {