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

Impossible to fetch multi-arch image into local archive #2413

Closed
ypnos opened this issue Aug 29, 2024 · 4 comments
Closed

Impossible to fetch multi-arch image into local archive #2413

ypnos opened this issue Aug 29, 2024 · 4 comments

Comments

@ypnos
Copy link

ypnos commented Aug 29, 2024

I have a multi-arch image in my registry that includes images for arm64 and amd64.

When I copy using skopeo I only get the amd64 part (according to my system architecture).

skopeo copy docker://... docker-archive:...

What I need, is the arm64 part. I cannot specify it but I can also not copy the multi-arch image:

skopeo copy --multi-arch=all docker://... docker-archive:...

This fails with the error message "copying multiple images: destination transport "docker-archive" does not support copying multiple images as a group".

Is there a possibility to download an archive file for a different arch than the host system one?

@mtrmac
Copy link
Contributor

mtrmac commented Aug 29, 2024

Thanks for reaching out.

I would expect --override-arch to work for choosing which one to use.

The format (in its traditional version) just can’t represent a multi-arch image.

(A general reminder: docker-archive: is almost always an undesirable part of a workflow, with feature limitations like these, and unavoidably bad performance. Use a registry if at all possible.)

@WYmindsky
Copy link

same issue

@mtrmac
Copy link
Contributor

mtrmac commented Sep 20, 2024

Note

The format (in its traditional version) just can’t represent a multi-arch image.

If that’s not the cause: Steps to reproduce / actual results / expected results?

@ypnos
Copy link
Author

ypnos commented Sep 26, 2024

I'm sorry, I had overlooked the --override-arch option as it is in another option tier. This worked fine for me. Thank you for your help!

@ypnos ypnos closed this as completed Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants