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

getting: "exec format error" #68

Open
realjax opened this issue Aug 23, 2020 · 5 comments
Open

getting: "exec format error" #68

realjax opened this issue Aug 23, 2020 · 5 comments

Comments

@realjax
Copy link

realjax commented Aug 23, 2020

When running this

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nexdrew/rekcod something

the response is:

standard_init_linux.go:211: exec user process caused "exec format error"
@nexdrew
Copy link
Owner

nexdrew commented Sep 3, 2020

Are you on an ARM system, by any chance?

Note that the current Docker image for rekcod (nexdrew/rekcod:3.0.0) was built for an amd64 architecture:

$ docker image inspect nexdrew/rekcod:3.0.0 | grep Architecture
        "Architecture": "amd64",

(You'd run into this same problem on a 32 bit system as well.)

If this is the problem, then it sounds like we need to figure out a way to build multi-arch images for rekcod... 🤔

@realjax
Copy link
Author

realjax commented Sep 3, 2020

Yes, it was on a raspberry pi 🙂

@nexdrew
Copy link
Owner

nexdrew commented Sep 3, 2020

Ok, I've learned a bit from this blog about how to build images for multiple platforms: https://www.docker.com/blog/multi-arch-images/

It essentially boils down to enabling and using the buildx Docker CLI plugin to tap into extended Moby BuildKit features.

I'll give this a shot and let you know how it goes.

@nexdrew
Copy link
Owner

nexdrew commented Sep 3, 2020

I successfully pushed a special tag called nexdrew/rekcod:3.0.0arm to Docker Hub that should support a 64 bit (linux/arm64) and a 32 bit (linux/arm/v7) version of ARM.

Give this a shot and let me know how it goes:

docker run --rm -v /var/run/docker.sock:/var/run/docker.sock nexdrew/rekcod:3.0.0arm something

@bwims
Copy link

bwims commented Jul 18, 2022

Your arm version worked fine for me, thanks!

May I suggest you add the tag to Docker Hub ?

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