-
I run a build with the following GitHub action:
The build runs successful and I can see both amd64 and arm64 containers in the registry. However when I try to run the container on a M1 Mac, I just get this error: qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory What do I miss? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 9 replies
-
Hello @Stwissel, I am not familiar with how JIB does multiarch, but it seems like the image you built is incorrectly tagged and instead of Linux aarch64 variant it's pulling Linux amd64 variant. What happens on your aarch64 mac when you run
What does podman inspect your_image:your_tag says? |
Beta Was this translation helpful? Give feedback.
-
Dockerfile for completness:
|
Beta Was this translation helpful? Give feedback.
-
I created a reproducer based on code-with-quarkus
|
Beta Was this translation helpful? Give feedback.
-
Hi @Stwissel , as noted in the docs,
To create cross platform binaries using native image you would need to run the build on each of the target architectures (emulation works as well). |
Beta Was this translation helpful? Give feedback.
Apparently there is an action that would do the trick: https://github.com/marketplace/actions/run-on-architecture