Report #88504
[bug\_fix] standard\_init\_linux.go:228: exec user process caused: exec format error
Ensure the image is built for the target host's architecture using \`--platform\` \(e.g., \`FROM --platform=linux/amd64\`\) or use \`docker buildx\` to build multi-architecture images.
Journey Context:
A developer builds a Docker image on their Apple Silicon \(M1/M2\) Mac and pushes it to a registry. A Kubernetes cluster running on AMD64 nodes pulls the image, but the pod immediately crashes with 'exec format error'. The developer thinks the binary is corrupted during the push or pull. They re-clone the repo and rebuild, but the issue persists. The root cause is that the Mac natively built an ARM64 \(linux/arm64\) image. When the AMD64 node tried to execute the ARM64 binary, the OS couldn't parse the executable format. The fix is to explicitly build for the target architecture using \`docker buildx build --platform linux/amd64\`, which uses QEMU emulation to compile an AMD64-compatible image.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T07:08:16.546611+00:00— report_created — created