From 40d2ebc0803b4e424c5df978b110e691eaa42e4f Mon Sep 17 00:00:00 2001 From: Alestrix Date: Thu, 4 Dec 2025 12:12:30 +0100 Subject: [PATCH] Add platform specification to Docker commands, fix build command Updated Docker commands to include platform specification for compatibility. Fixed build command --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 84f19aa..83374b0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,8 @@ Here are examples with Docker [3](#ref-3). $ uname -m x86_64 -$ docker run --rm -t arm64v8/ubuntu uname -m +# Need to provide platform on first pull +$ docker run --rm --platform arm64 -t arm64v8/ubuntu uname -m standard_init_linux.go:211: exec user process caused "exec format error" $ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes @@ -25,25 +26,25 @@ aarch64 It works on many architectures and OS container images. ``` -$ docker run --rm -t arm32v6/alpine uname -m +$ docker run --rm --platform arm32 -t arm32v6/alpine uname -m armv7l -$ docker run --rm -t ppc64le/debian uname -m +$ docker run --rm --platform ppc64le -t ppc64le/debian uname -m ppc64le -$ docker run --rm -t s390x/ubuntu uname -m +$ docker run --rm --platform s390x -t s390x/ubuntu uname -m s390x -$ docker run --rm -t arm64v8/fedora uname -m +$ docker run --rm --platform arm64 -t arm64v8/fedora uname -m aarch64 -$ docker run --rm -t arm32v7/centos uname -m +$ docker run --rm --platform arm -t arm32v7/centos uname -m armv7l -$ docker run --rm -t ppc64le/busybox uname -m +$ docker run --rm --platform ppc64le -t ppc64le/busybox uname -m ppc64le -$ docker run --rm -t i386/ubuntu uname -m +$ docker run --rm --platform i386 -t i386/ubuntu uname -m x86_64 ``` @@ -52,7 +53,7 @@ Podman [4](#ref-4) also works. ``` $ sudo podman run --rm --privileged multiarch/qemu-user-static --reset -p yes -$ podman run --rm -t arm64v8/fedora uname -m +$ podman run --rm --platform=arm64 -t arm64v8/fedora uname -m aarch64 ``` @@ -175,7 +176,7 @@ Because when the binfmt_misc entry is registered without `-p` option, the interp ``` $ docker run --rm --privileged multiarch/qemu-user-static:register --reset -$ docker build --rm -t "test/integration/ubuntu" -<