rekcod icon indicating copy to clipboard operation
rekcod copied to clipboard

getting: "exec format error"

Open realjax opened this issue 5 years ago • 5 comments

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"

realjax avatar Aug 23 '20 13:08 realjax

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... 🤔

nexdrew avatar Sep 03 '20 20:09 nexdrew

Yes, it was on a raspberry pi 🙂

realjax avatar Sep 03 '20 20:09 realjax

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 avatar Sep 03 '20 20:09 nexdrew

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

nexdrew avatar Sep 03 '20 21:09 nexdrew

Your arm version worked fine for me, thanks!

May I suggest you add the tag to Docker Hub ?

bwims avatar Jul 18 '22 11:07 bwims