Only try mounting when on the same registry
Displays a spurious error message when mirroring across repositories.
@@ -448,7 +448,9 @@ func (o *MirrorImageOptions) plan() (*plan, error) {
continue
}
for _, blob := range srcManifest.References() {
+ if src.ref.Registry == dst.ref.Registry {
registryPlan.AssociateBlob(blob.Digest, canonicalFrom.String())
+ }
blobPlan.Copy(blob, srcBlobs, toBlobs)
}
}
