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

Stopped working on arm64 with Alpine Linux 3.20.2 when upgrading kernel (linux-lts 6.6.47-r0 to 6.6.58-r0) #201

Open
pbreton opened this issue Oct 25, 2024 · 1 comment

Comments

@pbreton
Copy link

pbreton commented Oct 25, 2024

/usr/bin/docker run --privileged --rm tonistiigi/binfmt --install amd64

installing: amd64 qemu-x86_64 already registered
{
"supported": [
"linux/arm64",
"linux/amd64"
],
"emulators": [
"qemu-x86_64"
]
}

Before kernel upgrade:

docker run -it --rm --platform linux/amd64 alpine:latest uname -m

x86_64

After kernel upgrade:

docker run -it --rm --platform linux/amd64 alpine:latest uname -m

exec /bin/uname: exec format error

Dunno if this is particular to Alpine. This is running a Linux VM in VMware Fusion on a MacBook with an M2 chip.

@jansmets
Copy link

jansmets commented Dec 2, 2024

uninstall, then re-install.
You're binfmt handler is likely using the systemd installed binfmt handler, which is missing the required binfmt flags which you'd like to have for container environments.
eg, cat /proc/sys/fs/binfmt_misc/qemu-aarch64 , flags => POCF

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