Closed KEINOS closed 5 years ago
I get a
standard_init_linux.go:190: exec user process caused "exec format error"
error on Raspbian OS.
The main reason for this error is a mismatch of the CPU architecture.
The "automated build
" image, which has the "latest
" tag, was built on x86_68 CPU architecture.
But RaspberryPi runs on ARM CPU architecture. So basically you need to re-build the image locally.
The automated build feature on the official Docker Hub only runs the normal x86_64 docker implementation. Since arm code is not something an x86_64 CPU can execute, that’s why you get the ‘exec format failure’ on the automated build system.
(From the comment on "Automated Build Raspberry Pi based image on Docker Hub" @ Docker Forum )
I will push the built image on ARM to Docker Hub but meanwhile build it your own by:
$ # Move to any working directory you want
$ cd /path/to/your/working/directory
$ # Clone the repo with any dir name (ex: my-php8-jit)
$ git clone https://github.com/KEINOS/Dockerfile-of-PHP8-JIT.git my-php8-jit
$ # Move into the clone repo
$ cd $_
$ # Build the image with any image name (ex: php8-jit:local)
$ docker build --no-cache -t php8-jit:local .
...
Successfully built xxxxxxxxxxxxxx
Successfully tagged php8-jit:local
$ # Sample run
$ docker run --rm -it php8-jit:arm --version
PHP 8.0.0-dev (cli) (built: Jul 20 2019 01:01:42) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v8.0.0-dev, Copyright (c), by Zend Technologies
Now, an image for RaspberryPi (ARM architecture) is available to pull.
Specify arm
tag while pulling the image.
docker pull keinos/php8-jit:arm
I get a
standard_init_linux.go:190: exec user process caused "exec format error"
error on Raspbian OS.Env Info