From 8d51a1eb72a8fb5005b19b799c2a95eb34ca11a7 Mon Sep 17 00:00:00 2001 From: Dean Chen <862469039@qq.com> Date: Thu, 6 Aug 2026 17:46:05 +0500 Subject: [PATCH 1/2] docs: note binfmt/QEMU requirement for docker run --platform --platform can pull a foreign arch image and still fail with exec format error on Linux Engine if qemu-user binfmt handlers are missing. Fixes #3701 Signed-off-by: Dean Chen <862469039@qq.com> --- docs/reference/commandline/container_run.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/docs/reference/commandline/container_run.md b/docs/reference/commandline/container_run.md index 1dcc0fd5387b..75eb726148e0 100644 --- a/docs/reference/commandline/container_run.md +++ b/docs/reference/commandline/container_run.md @@ -604,6 +604,24 @@ $ docker run --pull=never hello-world docker: Error response from daemon: No such image: hello-world:latest. ``` +### Select the image platform (--platform) + +`--platform` selects which platform variant to pull and run when the image is +multi-arch (for example `linux/arm64` on an `linux/amd64` host). The daemon must +be able to run that architecture. + +On Docker Desktop, cross-architecture execution is set up for you. On a plain +Linux Engine install, foreign binaries need kernel `binfmt_misc` handlers +(commonly installed via [QEMU user-mode emulation](https://github.com/multiarch/qemu-user-static) +or your distribution's `qemu-user-static` package). Without those handlers, +`docker run --platform …` may pull the image successfully and then fail with +`exec format error` when starting the process. + +```console +$ docker run --rm --platform linux/arm64 arm64v8/ubuntu uname -m +aarch64 +``` + ### Set environment variables (-e, --env, --env-file) ```console From 7130b0784fbcd66e7a9e5f04551c937cce800804 Mon Sep 17 00:00:00 2001 From: Dean Chen <862469039@qq.com> Date: Thu, 6 Aug 2026 23:45:55 +0500 Subject: [PATCH 2/2] chore: re-trigger CI after Actions outage Signed-off-by: Dean Chen <862469039@qq.com>