Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can not run on arm server #109

Closed
lxm opened this issue Mar 25, 2021 · 5 comments
Closed

can not run on arm server #109

lxm opened this issue Mar 25, 2021 · 5 comments

Comments

@lxm
Copy link

lxm commented Mar 25, 2021

image

multi arch images displayed to support

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

@juamedgod
Copy link

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

@lxm
Copy link
Author

lxm commented Mar 26, 2021

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"

@rafariossaa
Copy link

rafariossaa commented Mar 26, 2021

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
Copy link

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

@beltran-rubo
Copy link
Contributor

It seems the issue could be related to the Docker client and the multiple arch variants moby/moby#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants