samdbmg / dhcp-netboot.xyz

Docker container that acts as a ProxyDHCP server for netbooting
GNU General Public License v3.0
69 stars 18 forks source link

running to an error exec format error #14

Open njinco opened 7 months ago

njinco commented 7 months ago

your setup is the closes i want to get for not wanting to touch my router as my dhcp server. but i get this error from running this. Any tips?

root@ubuntu:/home/ubuntu# docker run --net=host --cap-add=NET_ADMIN -e DHCP_RANGE_START=192.168.1.1 samdbmg/dhcp-netboot.xyz WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested exec /init: exec format error root@ubuntu:/home/ubuntu# docker run --platform linux/amd64 --net=host --cap-add=NET_ADMIN -e DHCP_RANGE_START=192.168.1.1 samdbmg/dhcp-netboot.xyz exec /init: exec format error

samdbmg commented 7 months ago

Are you running this on a Raspberry Pi or something? That'll be because I haven't built this for the ARM architecture I'm afraid.

For now, if you clone the repo and do docker build -t local/dhcp-netboot.xyz ., then change your command above to docker run --net=host --cap-add=NET_ADMIN -e DHCP_RANGE_START=192.168.1.1 local/dhcp-netboot.xyz that should work, although I don't actually have an ARM system I can test that on.

I better go off and learn about Docker multi-arch manifests to see if I can make CI do that, but it might be a while before I get to it

njinco commented 7 months ago

yes i am trying to run on a raspberry pi 4. But i thought i address that via --platform linux/amd64 command. but im not the good with docker and i will try your suggestion after i get some free time. I will let you know if it works. Thanks Sam for the reply.