minideb icon indicating copy to clipboard operation
minideb copied to clipboard

can not run on arm server

Open lxm opened this issue 3 years ago • 5 comments

image

multi arch images displayed to support

but when run on arm server got "exec format error"

lxm avatar Mar 25 '21 03:03 lxm

Hi,

Did you get any warning when pulling the image (or when running it) related to the arch not matching the detected host platform?

To make sure the right arch image is being used, could you pull bitnami/minideb:buster-arm64 instead? Could you send us the output of executing in your host:

uname -a

juamedgod avatar Mar 25 '21 12:03 juamedgod

no warnings when pulling the image

outputs of uname -a on host

Linux xxxx-g4im6 4.19.36-vhulk1907.1.0.h702.eulerosv2r8.aarch64 #1 SMP Mon Mar 16 00:02:15 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux

bitnami/minideb:buster-arm64 works well bitnami/minideb:buster will got error

container start initialization failed: standard_init_linux.go:219: exec user process caused "exec format error"

lxm avatar Mar 26 '21 04:03 lxm

Hi The error you got for bitnami/minideb:buster is normal as that image is for amd64 architectures. Could you run docker images to the get images IDs ? When pulling bitnami/minideb:buster you should be getting the arm one as it is multiarch.

rafariossaa avatar Mar 26 '21 17:03 rafariossaa

Hi, I tried on a raspberry pi 4 with raspbian 64 bit and it worked for me:

pi@raspberrypi:~ $ docker pull bitnami/minideb
Using default tag: latest
latest: Pulling from bitnami/minideb
f265f31cbb78: Pull complete 
Digest: sha256:53c2e148121eaa25b5f264463d4d1327fa3a735f8253fa0c4da353b15ea76fe5
Status: Downloaded newer image for bitnami/minideb:latest

pi@raspberrypi:~ $ docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE
bitnami/minideb     latest              c6fac3ec5eda        46 hours ago        61.8MB

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 5.4.51-v8+ #1333 SMP PREEMPT Mon Aug 10 16:58:35 BST 2020 aarch64 GNU/Linux

pi@raspberrypi:~ $ docker run --rm -it bitnami/minideb ls /
bin   dev  home  media  opt   root  sbin  sys  usr
boot  etc  lib   mnt    proc  run   srv   tmp  var

rafariossaa avatar Mar 28 '21 12:03 rafariossaa

It seems the issue could be related to the Docker client and the multiple arch variants https://github.com/moby/moby/issues/34875 Could you try updating the docker client version? if not, as you mentioned, you can pull the one with 'arm' in the tag itself.

beltran-rubo avatar Mar 29 '21 07:03 beltran-rubo