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

Docker fails to start with "standard_init_linux.go:219: exec user process caused: exec format error" #69

Open
DatDucati opened this issue Jan 3, 2021 · 3 comments

Comments

@DatDucati
Copy link

System: Raspberry PI 4 8GB with Ubuntu 20.04 64 Bit

uname -a output:
Linux glaedr 5.4.0-1025-raspi #28-Ubuntu SMP PREEMPT Wed Dec 9 17:10:53 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

Docker image id: 6d2b6854ef17

docker-compose.yaml is the example one from README.md.

Preview of docker-compose up:

standard_init_linux.go:219: exec user process caused: exec format error
standard_init_linux.go:219: exec user process caused: exec format error
standard_init_linux.go:219: exec user process caused: exec format error
standard_init_linux.go:219: exec user process caused: exec format error
standard_init_linux.go:219: exec user process caused: exec format error
standard_init_linux.go:219: exec user process caused: exec format error
standard_init_linux.go:219: exec user process caused: exec format error
standard_init_linux.go:219: exec user process caused: exec format error
@perara
Copy link
Owner

perara commented Jan 18, 2021

This I believe is due to the incorrect architecture. I would take a guess that you are trying to run amd64 on the PI, but PI is ARM.

Because you have an RPI with 8 GB, it has sufficient memory to compile the docker images. comment out or remove the image key in the docker-compose file and add

build:
      context: https://github.com/perara/wg-manager.git#master

This will probably take an hour or so. Please report back if this worked, and I'll try to set up similar builds as multi-arch building currently is bugged

@maguri
Copy link

maguri commented Apr 20, 2021

Same here!

I have IoT devices and if I pull and image compiled from github ci (amd) does not work, so, I have to build the image into one of the devices and the push it to the server for the other devices.

Solution:

  • Build image into Pi (arm architecture)
docker build -t ghcr.io/{repo}/{image}:{version}-armv7l .
docker push ghcr.io/{repo}/{image}:{version}-armv7l

@feokuma
Copy link

feokuma commented May 9, 2021

@maguri and @DasBiest try to build using the buildx targeting to --platform linux/arm/v7. This article explains how it works https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/

Hope it helps

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

4 participants