-
Notifications
You must be signed in to change notification settings - Fork 5
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
mquery images contain wrong architecture in image config #9
Comments
It looked weird on Apple Silicon M1 machines, and even weirder on a Raspberry Pi when I saw this warning that linux/amd64 is the requested platform. The image actually can run😅 And I found the problem in one of my multi-arch+multi-os images. My CI pipeline creates the manifest list with @tonistiigi I fear that buildx won't help for multi-os images with one or more Windows images in the manifest list. Any quick tip how we can fix the architecture when we build the arm64 image on an amd64 CI machines? |
As long as buildkit is used with correct
Buildx with container/kubernetes driver only builds windows images for cross compilation cases (eg. copying files from linux stage to a windows stage image). It can't run wcow containers. There is |
So, I think the root of the issue is that these images are all built on amd64 as cross-built Go binaries which then are assembled in a manifest list and pushed to |
Thanks, I‘ll look into buildx imagetools command. AFAIK there was no way to fix the architecture, so buildx is the way to go. |
Fixed in v0.4.0, which has been pushed as the |
Pick arm64
Same for linux/arm image.
In Docker 20.10 this means users get the following warning when running:
The text was updated successfully, but these errors were encountered: