You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is a bug or the intended behaviour so asking for clarification. When using the CopySpecifcImages it will copy the images listed in the Instances field but then try to put the entire manifest list into the destination which will only have the updated details for those copied as part of the Instances.
This will result in seeing manifest blob unknown: blob unknown to registry error, because there will be blobs referenced in the manifest that have not been included in the copy because they are not in the Instances list.
The language in the documentation for CopySpecifcImages does have the line "along with the list itself". Is this useful behaviour?
The usecase for this is to be able to copy only specific architectures from a multi-arch manifest rather than copying across all which can be costly storage. 1-2 GB wasted from unrequired archs.
The text was updated successfully, but these errors were encountered:
This is the intended, or at least as-of-this-point-frozen, behavior; e.g. #1483 (review) points at a specific constraint.
The alternate, of copying only a subset, and modifying the manifest list (at the price of breaking digest references to the manifest list), is a reasonable feature to perhaps add in the future. (And nowadays we have some ways to make the compatibility constraints mentioned in #1483 less constraining, e.g. c/image/internal/private.)
mtrmac
changed the title
[Clarification] copy.CopySpecifcImages and Instances list
Support stripping dropped instances from manifests when making sparse multi-platform copies
Jun 28, 2024
Hi,
Not sure if this is a bug or the intended behaviour so asking for clarification. When using the
CopySpecifcImages
it will copy the images listed in theInstances
field but then try to put the entire manifest list into the destination which will only have the updated details for those copied as part of theInstances
.This will result in seeing
manifest blob unknown: blob unknown to registry
error, because there will be blobs referenced in the manifest that have not been included in the copy because they are not in theInstances
list.The language in the documentation for
CopySpecifcImages
does have the line "along with the list itself". Is this useful behaviour?The usecase for this is to be able to copy only specific architectures from a multi-arch manifest rather than copying across all which can be costly storage. 1-2 GB wasted from unrequired archs.
The text was updated successfully, but these errors were encountered: