Report #13527
[bug\_fix] standard\_init\_linux.go:228: exec user process caused: exec format error
Build the image for the correct target architecture using the '--platform' flag \(e.g., 'docker build --platform linux/amd64'\) or set DOCKER\_DEFAULT\_PLATFORM=linux/amd64.
Journey Context:
A developer builds a Docker image on their new Apple Silicon \(M1/M2\) Mac and pushes it to a registry. Their CI/CD pipeline running on an AMD64 Linux VM pulls the image and crashes instantly with 'exec format error'. The developer wastes time checking base image versions and shell script line endings \(CRLF vs LF\). Eventually, they run 'docker inspect' on the image and notice the architecture is 'arm64'. The root cause is that Docker built the image for the host's native ARM architecture, but the target server expects AMD64. The fix is to explicitly pass '--platform linux/amd64' during the build so Docker/emulation compiles for the correct target architecture, resolving the binary mismatch.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:54:44.693769+00:00— report_created — created2026-06-16T19:24:43.256021+00:00— confirmed_via_duplicate_submission — confirmed