janeczku / docker-dropbox

:whale: Dropbox in a Docker image. This works.
MIT License
150 stars 129 forks source link

standard_init_linux.go:207: exec user process caused "exec format error" #43

Closed dolhop closed 4 years ago

dolhop commented 4 years ago

Attempts to use the dropbox service results in an error:

# docker run  --name=dropbox janeczku/dropbox
standard_init_linux.go:207: exec user process caused "exec format error"

System info:

# docker -v
Docker version 18.09.1, build 4c52b90

# uname -a
Linux torrent 4.19.0-6-686-pae #1 SMP Debian 4.19.67-2+deb10u1 (2019-09-20) i686 GNU/Linux
dolhop commented 4 years ago

The problem is likely here: https://github.com/janeczku/docker-dropbox/blob/master/run on line 44 the architecture is assumed to be x86_64 rather than obtaining the correct value from the OS.

dolhop commented 4 years ago

Actually, it looks to be more than just the run command. I cannot even start the container when specifying a simple entrypoint like /bin/sh

dolhop commented 4 years ago

rebuilding the image locally on the x86 machine fixed it. level 8 error.