-
Notifications
You must be signed in to change notification settings - Fork 72
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
Error while building amd64 image on arm64 machine #79
Comments
Seems to work fine
|
I've now started from scratch again so the error message is different. ls /proc/sys/fs/binfmt_misc/
docker buildx ls
cat Dockerfile
uname -a
docker version
docker buildx version
docker buildx build --platform=linux/amd64 .
|
Still nothing
You might want to update your Docker though. |
You can set |
I updated docker to 20.10.12 but the issue persists. QEMU_STRACE didn't bring any additional info unfortunately. edit:
|
This error is a pretty clear indication that you have not installed this repo as instructed in https://github.com/tonistiigi/binfmt#installing-emulators . If that image shows amd64 installed in kernel you would never get an error like this as it goes to a different code-path and never invoke If you say |
Reinstalled. Different error but same result.
|
Maybe it's something specific to Oracle Linux. Google shows some qemu bugs but they are all marked as fixed already. |
There is no ld.so.preload file in the host machine
|
It doesn't need to be. The process is just probing what files are there. Error in syscall doesn't automatically mean process error. And all the paths in there are in relation to the container, not your host. Here is an example of same successful run:
|
Do you have any ideas how to continue debugging? |
I'm also having a similar problem -- posted in docker/buildx#1639
output's a bit long but here are those I think might be interesting:
|
RUN apt-get update && apt-get install -y wget git unzip zip
fails with following error message:#12 66.77 addgroup: `/usr/sbin/groupadd -g 101 ssh' exited from signal 134. Exiting.
#12 66.78 dpkg: error processing package openssh-client (--configure):
#12 66.78 installed openssh-client package post-installation script subprocess returned error exit status 1
Previously i've ran:
docker run --privileged --rm tonistiigi/binfmt --install amd64
Trying to create a amd64 image on aarch cpu machine.
The text was updated successfully, but these errors were encountered: