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

"exec format error" after reboot. How to avoid reinstallation on Raspberry Pi? #85

Closed
Nitrooo opened this issue Apr 23, 2022 · 2 comments

Comments

@Nitrooo
Copy link

Nitrooo commented Apr 23, 2022

I have a few containers on my Raspberry Pi that run amd64 emulators:
docker run -d --restart always --platform linux/amd64 example/example
Whenever I reboot I have to reinstall binfmt with:
docker run --privileged --rm tonistiigi/binfmt --install all
Otherwise I get exec /bin/sh: exec format error inside my containers.
That's really annoying. Is there a way to avoid this?

@Nitrooo Nitrooo changed the title "exec format error" after reboot. How to avoid reinstallation on Raspberry? "exec format error" after reboot. How to avoid reinstallation on Raspberry Pi? Apr 23, 2022
@tonistiigi
Copy link
Owner

This is expected. You need to run the install command again after reboot. The best way for doing that depends on your distro etc.

@Nitrooo
Copy link
Author

Nitrooo commented May 7, 2022

I ended up making a systemd service for that.

Thanks.

@Nitrooo Nitrooo closed this as completed May 7, 2022
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