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

Need to uninstall and then install back after restarting Docker Desktop #168

Open
NourNuxeo opened this issue Mar 12, 2024 · 1 comment
Open

Comments

@NourNuxeo
Copy link

NourNuxeo commented Mar 12, 2024

Hello,
Using this project to run a container built for linux/amd64 on a M1 macbook pro, every time I restart Docker desktop, emulation stops working correctly and I get errors (here is one but it is specific to my container's stack...)
java.lang.InternalError: a fault occurred in a recent unsafe memory access operation in compiled Java code
The container doesn’t change. The JVM inside is always the same.
So I tried different things and it happens to work by uninstalling first and then install again (everytime I restart Docker desktop):

docker run --privileged --rm tonistiigi/binfmt --uninstall \*
docker run --privileged --rm tonistiigi/binfmt --install all
docker run myImage...

Note: When it doesn’t work properly, the input is faster as if no emulation. Yet If no emulation at all (if I uninstall and run my image), it wouldn't even start.

Can’t we install and use once and for all ?

@dalisoft
Copy link

I'm found uninstall command at #135 (comment) and installing command can be found at https://github.com/tonistiigi/binfmt?tab=readme-ov-file#installing-emulators

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