Docker Community Forums

Share and learn in the Docker community.

Standard_init_linux.go:190: exec user process caused "exec format error


(Nwegener) #1

Hello,
on an arm based orangepipcplus this command fails:
docker run --rm -v /root/config:/tmp/docker-mailserver -ti tvial/docker-mailserver:latest addmailuser bla@exmaple.com
with
standard_init_linux.go:190: exec user process caused "exec format error"
the version is:

docker version
Client:
Version: 18.04.0-ce
API version: 1.37
Go version: go1.9.4
Git commit: 3d479c0
Built: Tue Apr 10 18:25:11 2018
OS/Arch: linux/arm
Experimental: false
Orchestrator: swarm

Server:
Engine:
Version: 18.04.0-ce
API version: 1.37 (minimum version 1.12)
Go version: go1.9.4
Git commit: 3d479c0
Built: Tue Apr 10 18:21:14 2018
OS/Arch: linux/arm
Experimental: false

on a x86_64 ubuntu machine the same command succeeds.

Any idea?

Norbert


(Msr2406) #2

Hi Norbert
I’ve had a similar problem. Just starting with Docker. I created the getting started image and it ran fine on my Linux/Mint PC.
I uploaded it to the docker hub and installed docker on a Raspberry Pi. On downloading the image from the hub to my RPi, I got the same message
standard_init_linux.go:190 exec user process caused “exec format error”.
:slightly_frowning_face:
Did you find out anything from anywhere else about the cause?
Mark.


(Nwegener) #3

Hi Mark, The Problem ist probably that the Image you use has the wrong architecture. I Had an x64 Image and needed an arm Image. That was at least my Problem.

BR Norbert


(Mariu5) #4

That was it. I updated the deployment.template.json file with the right image architecture and it worked like a charm. It was supposed to be arm32 in my case and I used this:
“image”: “${MODULES.CSharpModule.arm32v7}”


#5

hi! Mate… I’m also use docker but for Mobsf… docker is running fine but not able to executing below command:
docker run -it -p 8000:8000 opensecurity/mobile-security-framework-mobsf:latest

and throws the same error

[Standard_init_linux.go:190: exec user process caused “exec format error]

can somebody please help???


(Gary Forghetti) #6

You have to run the docker image that was built for a particular Architecture on a docker node that is running that same Architecture.

Take docker out of the picture for a moment. You can’t run a Linux application compiled and built on a Linux ARM machine and run it on a Linux amd64 machine. You can’t run a Linux application compiled and built on a Linux Power machine on a Linux amd64 machine.

I answered this same issue/question in this another post.
Take a look -> How much does Docker virtualize?