question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raspberry pi: standard_init_linux.go:190: exec user process caused "exec format error"

See original GitHub issue

What do I need to do to get the python3.6 container running on a Raspberrypi 3?

> docker run -it tiangolo/uwsgi-nginx-flask:python3.6 bash -il
standard_init_linux.go:190: exec user process caused "exec format error" 

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

15reactions
crawforc3commented, Jun 16, 2018

Thanks for the help! That solves it!

Just for posterity, these are the commands I ran from start to finish for a working build

# Clone and build image that has rpi support

git clone https://github.com/tiangolo/uwsgi-nginx-docker.git
cd uwsgi-nginx-docker/python3.6
docker build -t tiangolo/uwsgi-nginx:python3.6 .

cd ../../

# Clone and build image that is customized for Flask (uses the previous image as the base)

git clone https://github.com/tiangolo/uwsgi-nginx-flask-docker.git
cd uwsgi-nginx-flask-docker/python3.6
docker build -t tiangolo/uwsgi-nginx-flask:python3.6 .

# Run the image 
docker run -it tiangolo/uwsgi-nginx-flask:python3.6 bash

4reactions
tiangolocommented, Jun 16, 2018

Raspberry Pi requires images to be compiled for that architecture, ARM. And although Docker now supports different architectures, and I understand the image format also supports specifying architectures, there’s no way to handle it through Docker Hub with the “standard” Docker Hub automated build.

I have already taken several steps (actually some months ago) to make the image, configuration and dependencies compatible with multi-arch (I’ve worked a lot with Pis). The only step missing is Docker Hub support for automated building images for Raspberry Pi.

For now, I suggest you try cloning this repository in your Pi and building the base image locally. In theory, it should all work. After that, you can run your image normally:

git clone https://github.com/tiangolo/uwsgi-nginx-flask-docker.git
cd uwsgi-nginx-flask-docker/python3.6
docker build -t tiangolo/uwsgi-nginx-flask:python3.6 .

And then run again:

docker run -it tiangolo/uwsgi-nginx-flask:python3.6 bash

I’m not running all those commands right now as I’m typing them here, so it’s possible that y put a typo there (so, copy-pasting might not work). Please make sure they are right locally.

And let me know how it goes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Standard_init_linux.go:190: exec user process caused "exec ...
Hello, on an arm based orangepipcplus this command fails: docker ... Standard_init_linux.go:190: exec user process caused "exec format error.
Read more >
Raspberry PI: exec user process caused "exec format error" #2
Hi I tried to use EdgeDB on a PI (Raspbian) using Docker, but I issued with this error: root@raspberrypi:~# docker run -it --rm...
Read more >
exec user process caused "exec format error" - Stack Overflow
I'd recently moved my docker stuff to Kubernetes on a raspberry pi - forgetting the different architecture - had to change all my...
Read more >
exec user process caused "exec format error" - You.com
Hi, I'm trying to run your container on a raspberry pi and I'm getting the following error. standard_init_linux.go:190: exec user process caused "exec...
Read more >
On Docker Build => standard_init_linux.go:190: exec user ...
On Docker Build => standard_init_linux.go:190: exec user process caused "exec format error" ... Here is a photo of the Dockerfile trying to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found