Skip to content

Commit

Permalink
debian qemu instructions (#6)
Browse files Browse the repository at this point in the history
Co-authored-by: Zack Porter <[email protected]>
  • Loading branch information
abe-winter and zaporter-work authored Aug 16, 2023
1 parent 1f0cbf2 commit 55ea6d5
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 55ea6d5

Please sign in to comment.