-
Notifications
You must be signed in to change notification settings - Fork 211
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
standard_init_linux.go:211: exec user process caused "exec format error" #410
Comments
For the record, this issue shows the exact same error message, but for a completely different image ( There, they say:
Hence my question: who can run @hrw: wondering if you can run this image on your side? |
"quay.io/pypa/manylinux2014_aarch64" can be run on aarch64:
|
Oh, I thought I could use it for cross-compiling, actually. I guess I got confused because I'm using dockcross, and I'm not used to running Docker on arm devices 😆. Thanks a lot! |
@JonasVautherin and I am not used to running Docker on x86 ;D |
@hrw: I am now wondering how one would create a My understanding is that |
I never heard of dockcross before. There are several CI options available with AArch64 support. AWS has EC2 instances etc. |
Hey folks, FYI I saw an answer on stackexchange recently that seemed to nail this redherring error message. In their case, and in my case, the problem was that the execute permission was not set on the execution target. You may want to chmod+x to the execution target in your Dockerfile/Docker build and try again. |
To build off that, if your execution target happens to be a shell script of the likes, be sure that you also have a shebang appropriate to that. |
For the record, dockcross now has manylinux2014-aarch64 thanks to @odidev 🎉. |
@hrw this cannot be true, can it? I can run the manylinux2014_aarch64 image successfully on my macOS which is x86_64 not aarch64:
I can also run manylinux2014_ppc64le and manylinux2014_s390x too:
|
I am trying to install Mavsdk on Raspberry pi 4 Raspberry OS Buster Lite. I have installed and checked the docker. It works fine . After that i entered the following command docker run --rm dockcross/linux-armv7 > ./dockcross-linux-armv7 It installed the dockcross/linux-armv7 image on the docker I have looked at the dockcross-linux-armv7 in the MAVSDK folder . Its empty , 0 bytes. What can go wrong here ? |
I'm new to making Docker containers work cross-platform, especially using an Apple M1-chip laptop for development. But so far what worked for me is to specify the platform
Even better, to help me know that a build is for that platform, I'll give this specific image a tag of the string "amd64":
My comment is not necessarily related to the pypa project, but just wanted to mention how I solved (worked around) the I'm able to then run I'm next going to look into using the new docker manifest feature to make one image work on multiple different platforms. https://docs.docker.com/engine/reference/commandline/manifest/#inspect-a-manifest-list , which should help aid in a better long-term solution for all this. |
You need to enable emulation before running the aarch64 image on x86_64 will work on Linux. I assume it works out-of-the-box on macOS because Docker is already using a full blown virtual machine by default there. On Linux it uses QEMU. Run the following command: docker run --privileged --rm docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64 Some more info here: https://www.docker.com/blog/multi-platform-docker-builds/ |
I cannot reopen #406, but I believe I have the exact same problem.
I try to run the following:
And I get the following output:
I am running on Arch Linux, on
Docker version 19.03.5-ce, build 633a0ea838
.Any idea where that error may come from?
The text was updated successfully, but these errors were encountered: