theNetworkChuck / NetworkChuck

320 stars 176 forks source link

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

Open Chemikaze opened 4 years ago

Chemikaze commented 4 years ago

I was able to install the thenetworkchuck_pihole docker on ubuntu with no issues, however when I tried installing it on RPi 3B+, I get the above error. I can install the original pihole no problem on the RPi, but then I don't have any automation.

Any thoughts?

trekie86 commented 4 years ago

The reason you are seeing this error is because the container was built for an amd64 processor (https://hub.docker.com/layers/thenetworkchuck/networkchuck_pihole/latest/images/sha256-451c3b12506634cb279a04d2e31db3cd46b0e7dfcbfc6159d180b11c2ea84147?context=explore). The RaspberryPi is an ARM processor and therefore cannot run this container successfully.

netofbeing commented 4 years ago

The reason you are seeing this error is because the container was built for an amd64 processor (https://hub.docker.com/layers/thenetworkchuck/networkchuck_pihole/latest/images/sha256-451c3b12506634cb279a04d2e31db3cd46b0e7dfcbfc6159d180b11c2ea84147?context=explore). The RaspberryPi is an ARM processor and therefore cannot run this container successfully.

I would like to install it on my RaspberryPi 4, how can i modify the container to install on the Pi?

FYI - This is my first attempt at Docker and Containers.

Thanks

JKinch commented 4 years ago

Same boat here as Netofbeing

netofbeing commented 4 years ago

I'm guessing that a copy of the Image needs to be created for an ARM based processor.

Anyone know how to go about this?

Chemikaze commented 4 years ago

I'm not really up on creating docker containers. If someone figures it out, it would be nice if it can be updated to pihole 5 as well.

trekie86 commented 4 years ago

The best starting point would be if we have the Dockerfile and the original source from @theNetworkChuck in gitHub. With that information, a new Dockerfile can be defined using a base image that is from an ARM based processor.

netofbeing commented 4 years ago

@theNetworkChuck Reaching out for some extra help, thank you!

stcoops commented 3 years ago

I suspect most of you will have come to this conclusion anyway, but pi-hole's own docker image (https://hub.docker.com/r/pihole/pihole) will work fine on arm based processors running docker (in my experience at least).

AlexGarciaG commented 1 year ago

I could not find an official method for deploying the "thenetworkchuck/networkchuck_pihole" container on a Raspberry Pi, as it was built exclusively for the amd64 architecture. Nonetheless, this problem can be resolved by utilizing the latest version of "pihole/pihole," which is compatible with the arm architecture. To inmate the "thenetworkchuck/networkchuck_pihole" container, the scripts created by NetworkChuck will be integrated into the pihole container. You may examine my repository, where I have addressed this issue to save time. https://github.com/AlexGarciaG/networkchuck_pihole_for_arm