aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Mortier <mort@cantab.net>2019-12-29 16:59:22 +0100
committerRichard Mortier <mort@cantab.net>2019-12-29 16:59:22 +0100
commitb793e3e7370a768df9c469b117c2bda360d09017 (patch)
tree4f81fb6e40f23bbc1b74e917bc22b7d16bd7e837
parentf23632e518e2b6c7f17e6d474711cfc384923ea0 (diff)
downloaddocker-abuild-b793e3e7370a768df9c469b117c2bda360d09017.tar.bz2
docker-abuild-b793e3e7370a768df9c469b117c2bda360d09017.tar.xz
readme: add instructions to install multiarch support on Linux
Signed-off-by: Richard Mortier <mort@cantab.net>
-rw-r--r--README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index ba50954..7d7e483 100644
--- a/README.md
+++ b/README.md
@@ -40,7 +40,17 @@ On invocation from within an `aports/` tree, the script will determine the root
Per normal usage, if you use the `-K` switch, then the build, source, etc directories will be left alone on completion. If you then invoke as `dabuild build`, then the source will not be re-fetched -- useful when you wish to edit the source to debug a package build.
-## `sudo: effective uid is not 0`
+## Problems with multi-arch support
+
+Docker-for-Mac comes with multi-arch support (by configuring `binfmt_misc` in the Linux VM to use `qemu-$ARCH-static`) out of the box. If you are running on native Docker for Linux, then you can install similar support via
+
+``` shell
+docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
+```
+
+Note that this may reconfigure any existing `binfmt_misc` setup that you have. See <https://github.com/multiarch/qemu-user-static> for more detail.
+
+## Problems with `sudo`
If you see an error such as