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

running to an error exec format error #14

Open
njinco opened this issue Mar 3, 2024 · 2 comments
Open

running to an error exec format error #14

njinco opened this issue Mar 3, 2024 · 2 comments

Comments

@njinco
Copy link

njinco commented Mar 3, 2024

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

samdbmg commented Mar 5, 2024

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

njinco commented Mar 5, 2024

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.

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

2 participants