Report #29125
[bug\_fix] standard\_init\_linux.go:228: exec user process caused: exec format error
Build the image with the correct target platform using --platform linux/amd64 in the FROM statement or docker buildx build --platform linux/amd64.
Journey Context:
A developer builds a Docker image on their Apple Silicon \(M1/M2\) Mac. It runs fine locally via Docker Desktop \(which uses Rosetta/QEMU seamlessly\). They push the image to a CI/CD pipeline or an AWS EC2 instance running on an AMD64 architecture. The container crashes immediately on startup with 'exec format error'. They spend hours checking file permissions, entrypoints, and shell scripts, only to realize the image was built for linux/arm64 and the server is linux/amd64. The kernel cannot execute a binary compiled for a different architecture, resulting in this cryptic format error.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:16:50.318548+00:00— report_created — created