Disable mount+from
@@ -86,18 +86,8 @@ class PushBlobStep implements AsyncStep<BlobDescriptor>, Callable<BlobDescriptor
return blobDescriptor;
}
- // If base and target images are in the same registry, then use mount/from to try mounting the
- // BLOB from the base image repository to the target image repository and possibly avoid
- // having to push the BLOB. See
- // https://docs.docker.com/registry/spec/api/#cross-repository-blob-mount for details.
- boolean sameRegistry =
- buildConfiguration
- .getBaseImageConfiguration()
- .getImageRegistry()
- .equals(buildConfiguration.getTargetImageConfiguration().getImageRegistry());
- String mountFrom =
- sameRegistry ? buildConfiguration.getBaseImageConfiguration().getImageRepository() : null;
- registryClient.pushBlob(blobDescriptor.getDigest(), blob, mountFrom);
+ // todo: leverage cross-repository mounts
+ registryClient.pushBlob(blobDescriptor.getDigest(), blob, null);
return blobDescriptor;
}
