olbat / dockerfiles

A collection of Dockerfiles
https://hub.docker.com/u/olbat/
GNU General Public License v3.0
136 stars 75 forks source link

Error launching docker image #28

Closed ferbulous closed 4 years ago

ferbulous commented 4 years ago

Hi, I'm running the cups on my docker, but there's some error starting it up on raspbian 4 buster.

`standard_init_linux.go:211: exec user process caused "exec format error"

standard_init_linux.go:211: exec user process caused "exec format error"

standard_init_linux.go:211: exec user process caused "exec format error"`

Please do let me know if I can provide other logs.

olbat commented 4 years ago

Could you provide me with the Docker command you used to run the container?

It look more like an error related to the way you're running the container to me than something related to this specific Docker image.

If you're running a custom script, you might be interested by this post.

ferbulous commented 4 years ago

I used the docker command as in front page

docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus --name cupsd olbat/cupsd

olbat commented 4 years ago

I just tested and it work fine on a Linux x86-64 system.

The problem looks related to your Docker runtime environment: the image has been built for x86-64 systems and your system is most probably running on ARM arch (it seems to be a common issue, cf. this and that for example).

I suggest you to rebuild the image from your ARM system changing the base image in the FROM statement of the Dockerfile to a Debian image for ARM systems (e.g. look for arm Debian base image).

olbat commented 4 years ago

The source of the problem was identified, I'm going to close the issue.

(I might add images for non x86-64 systems someday but have no plan to do so in the near future)