Docker Community Forums

Share and learn in the Docker community.

ARM docker image on x86 Debian machine

docker

(Rdimitri) #1

HI.

I have written a gitlab-ci.yml for my work that build automatically a project, but it fail to run with : (the script is lauched on gitlab installed on debian)

Running with gitlab-runner 10.4.0 (857480b6)
  on openstack-manager (bd5074ec)
Using Docker executor with image resin/rpi-raspbian ...
Using docker image sha256:ef63ae5c207d34ece32d9e45f8db17f29399bc96d5feeaecb4e671eb370635d2 for predefined container...
Pulling docker image resin/rpi-raspbian ...
Using docker image resin/rpi-raspbian ID=sha256:78ba8443aecc2e823518c7dd03189da278e79caa9e6f0bdd1a97fc112ff5b209 for build container...
Running on runner-bd5074ec-project-68-concurrent-0 via openstack-manager...
Fetching changes...
HEAD is now at 1885b4e Update .gitlab-ci.yml
Checking out 1885b4ee as DockerCI...
Skipping Git submodules setup
standard_init_linux.go:195: exec user process caused "no such file or directory"
standard_init_linux.go:195: exec user process caused "no such file or directory"
ERROR: Job failed: exit code 1

So I made some test on my local machine with both Fedora and Debian, I have installed Docker, qemu, qemu-user-static on both systems, the configurations are :

On Fedora

uname -r : 4.13.1-200.f26.x86_64
docker -v : Docker version 1.13.1, build 584d391/1.13.1
qemu-arm-static -version : qemu-arm version 2.9.1(qemu-2.9.1-2.f26)

On Debian

uname -r : 4.9.0-4-amd64
docker -v : Docker version 1.13.1, build 092cba3
qemu-arm-static -version : qemu-arm version 2.8.1(Debian 1:2.8+dfsg-6debu3)

I tried to run a simple command to test that docker works on both system :

docker run arm32v6/alpine echo "hello world!"

And… it run correctly on the Fedora system, but it fail on the Debian system with the same error than gitlab, anyone know why ?

NB : I also tried other architectures on Debian, and only amd64/alpine and i386/alpine work.
NB : I found one arm image that run on gitlab resin/rpi-raspbian, but arm32v6/node:8.9.4-alpine still faill

Thanks.