binfmt
binfmt copied to clipboard
Installed "emulators" successfully but not appear in "supported"
Device
Orange Pi RV2 RISC-V CPU want to run amd64 arch.
Details
After running the:
$ sudo docker run --privileged --rm tonistiigi/binfmt:latest --install amd64
{
"supported": [
"linux/riscv64"
],
"emulators": [
"python3.12",
"qemu-x86_64"
]
}
the new qemu-x86_64 emulators will appear in the results but the supported field will only have a single linux/riscv64.
But when I restart the systemd-binfmt.service, all the new emulators will gone:
sudo systemctl restart systemd-binfmt.service
I tried to install QEMU from the distro package manager, like #169:
sudo apt install qemu-user qemu-user-binfmt
It will give me more "emulators" permanently but still no more in "supported".
Run containers
I originally planned to run Jellyfin, but tested it in the Alpine base image:
Without any emulators:
$ sudo docker run --rm -it --platform linux/amd64 alpine
exec /bin/sh: exec format error
Have emulators, no supported in results:
# return nothing
$ sudo docker run --rm -it --platform linux/amd64 alpine