Report #78383
[bug\_fix] exec user process caused: exec format error when running the container, or buildx build fails with no match for platform in manifest.
Use \`docker buildx build --platform linux/amd64,linux/arm64\` and ensure a \`docker-container\` driver is created with \`docker buildx create --use\`. Install QEMU binfmt for cross-platform emulation if building locally.
Journey Context:
A developer on an Apple Silicon \(M1/M2\) Mac builds a Docker image and pushes it to a registry. A Kubernetes cluster running on Intel nodes tries to pull and run the image, resulting in \`exec format error\`. The developer is confused because it works locally. They discover that by default, Docker builds for the host architecture \(arm64\). They try \`docker build --platform linux/amd64\`, but the resulting image still fails or the build fails if using \`buildx\` without a proper driver. They learn they need to use \`docker buildx create --name mybuilder --use\` to create a buildkit container driver that supports multi-arch builds and cross-compilation. The fix works because the \`docker-container\` driver runs an isolated BuildKit instance capable of utilizing QEMU to emulate other architectures, building the correct binaries for the target platform.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T14:09:52.589207+00:00— report_created — created