How does this work? #88
-
Hi! I see lots of advice on the Internet to use this container when you need to, say, build or run cross-arch images, like building linux/arm64 images from an x86_64 host. However, I cannot for the life of me understand how this container works. When called with What am I missing? Edit: I just noticed that the Edit 2: Is it just my imagination, or is your personal repository used by 80% of the container/Docker/K8s ecosystem? :) I'm finding this repo referred to from everywhere. It looks something like the "package" included in LinuxKit, except yours is up-to-date and LinuxKit's seems to include very old qemu. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This repo packages upstream qemu-user with some additional patches so it works well in containers with a container-friendly installer. It can be built in two modes. One is "mainline" that is for installing in your kernel. Another is buildkit-specific that is only used by buildkit that directly invokes the binaries(if you don't want to install anything in kernel). Unless you are a buildkit maintainer you only care about the mainline.
The binaries are set as a target to the register script. Flag |
Beta Was this translation helpful? Give feedback.
This repo packages upstream qemu-user with some additional patches so it works well in containers with a container-friendly installer.
It can be built in two modes. One is "mainline" that is for installing in your kernel. Another is buildkit-specific that is only used by buildkit that directly invokes the binaries(if you don't want to install anything in kernel). Unless you are a buildkit maintainer you only care about the mainline.
The binaries are set as a target to the register script. Flag
F
is used https://en.wikipedia.org/wiki/Binfmt_misc that effectively locks the file/fd to the…