Remove references to Qemu requirements in multiarch documentation

It is not actually required to have qemu inside of the container as binfmt_misc uses qemu on the host to function.
This commit is contained in:
Justin 2018-06-18 19:12:35 -07:00 committed by GitHub
parent 7ee5554905
commit c8fa039cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 13 deletions

View File

@ -11,13 +11,12 @@ Docker for Mac provides `binfmt_misc` multi architecture support, so you can run
containers for different Linux architectures, such as `arm`, `mips`, `ppc64le`, containers for different Linux architectures, such as `arm`, `mips`, `ppc64le`,
and even `s390x`. and even `s390x`.
This should just work without any configuration, but the containers you run need This does not require any special configuration in the container itself as it uses
to have the appropriate `qemu` binary inside before you can do <a href="http://wiki.qemu.org/" target="_blank">qemu-static</a> from the Docker for
this. (See <a href="http://wiki.qemu.org/" target="_blank">QEMU</a> for more Mac VM.
information.)
So, you can run a container that already has this set up, like the <a You can run an ARM container, like the <a href="https://resin.io/how-it-works/" target="_blank">
href="https://resin.io/how-it-works/" target="_blank">resin</a> arm builds: resin</a> arm builds:
``` ```
$ docker run resin/armv7hf-debian uname -a $ docker run resin/armv7hf-debian uname -a
@ -30,10 +29,6 @@ Linux edd13885f316 4.1.12 #1 SMP Tue Jan 12 10:51:00 UTC 2016 ppc64le GNU/Linux
``` ```
Running containers pre-configured with `qemu` has the advantage that you can use Multi architecture support makes it easy to build <a href="https://blog.docker.com/2017/11/multi-arch-all-the-things/" target="_blank">
these to do builds `FROM`, so you can build new Multi-CPU architecture packages. multi architecture Docker images</a> or experiment with ARM images and binaries
from your Mac.
Alternatively, you can bind mount in the `qemu` static binaries to any
cross-architecture package, such as the semi-official ones using a script like
this one [https://github.com/justincormack/cross-docker](https://github.com/justincormack/cross-docker). (See the README at the
given link for details on how to use the script.)