Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crane: how to copy a sub-set of a image platforms? #1143

Closed
rgl opened this issue Oct 8, 2021 · 5 comments · Fixed by #1561
Closed

crane: how to copy a sub-set of a image platforms? #1143

rgl opened this issue Oct 8, 2021 · 5 comments · Fixed by #1561

Comments

@rgl
Copy link

rgl commented Oct 8, 2021

How can we copy the images of a manifest list that match a given platform list?

Using crane --all we can copy all the images from a manifest list.

Using crane --platform we can can copy a single image that matches the given singular platform, but how about a sub-set? Something like crane --platform linux/amd64,linux/arm64?

This would be useful for copying a sub-set of the debian:bullseye-slim images (e.g. just the linux/amd64 and linux/arm64 platform images).

@jonjohnsonjr
Copy link
Collaborator

jonjohnsonjr commented Oct 8, 2021

This is an interesting idea.

Do you want to copy both images separately to the destination? Or do you want to take the existing manifest list, filter out all the platforms you don't care about, and push a new manifest list with just those two platforms?

We might want to revive #891 and add this to the list of things we'd like to support.

I could see this being a crane copy flag, but it feels like it should probably be a separate command if we're synthesizing new artifacts. Currently, crane copy is a digest-preserving operation (either the index digest or an individual image's digest ends up in the target), and I'd like to keep it that way.

@rgl
Copy link
Author

rgl commented Oct 9, 2021

Do you want to copy both images separately to the destination? Or do you want to take the existing manifest list, filter out all the platforms you don't care about, and push a new manifest list with just those two platforms?

The second one :-)

@jonjohnsonjr
Copy link
Collaborator

X-ref: containers/skopeo#1511

@github-actions
Copy link

github-actions bot commented Mar 1, 2022

This issue is stale because it has been open for 90 days with no
activity. It will automatically close after 30 more days of
inactivity. Keep fresh with the 'lifecycle/frozen' label.

@gpsmit
Copy link

gpsmit commented May 10, 2022

I would love to have this feature as well.
Today I pushed 5GB worth of windows images when im only interested in linux arm & and images

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants