From 55ea6d580aedb077cf45fed91ac212bd754c0bd1 Mon Sep 17 00:00:00 2001 From: abe-winter Date: Wed, 16 Aug 2023 15:58:05 -0400 Subject: [PATCH] debian qemu instructions (#6) Co-authored-by: Zack Porter <121693134+zaporter-work@users.noreply.github.com> --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3833f8e..53a0656 100644 --- a/README.md +++ b/README.md @@ -122,12 +122,20 @@ Optionally `-a` can be appended to terminate ALL canon-managed containers. ## Emulation Docker can be used cross-architecture, such as running arm64 images and toolchains on amd64, and vice versa. This is enabled by default -on the MacOS versions of docker. For Linux, qemu can be installed and configured. Most distros have a package to do this -(look for qemu-user-static), or you can run the following to try it out as a one-shot: +on the MacOS versions of docker. + +On Debian and Ubuntu, you can follow [Debian's qemu instructions](https://wiki.debian.org/QemuUserEmulation) to set this up: + +```sh +sudo apt install binfmt-support qemu-user-static +``` + +Most other Linux distributions should have a packaged version of [binfmt](https://github.com/tonistiigi/binfmt) and [qemu-user-static](https://github.com/multiarch/qemu-user-static) that you can install to run containers on different architectures ([docker docs](https://docs.docker.com/build/building/multi-platform/#qemu)). +Or you can run the following to try it out as a one-shot: `docker run --rm --privileged multiarch/qemu-user-static --reset -p yes` -Note: This will only last until the next reboot of the Linux system. See https://github.com/multiarch/qemu-user-static for more details. +Note: the one-shot approach will only last until the next reboot of the Linux system. See https://github.com/multiarch/qemu-user-static for more details. ## Updates