Report #63849
[bug\_fix] standard\_init\_linux.go:228: exec user process caused: exec format error
Build the image with the correct target architecture using \`--platform linux/amd64\` \(or the required architecture\) in the \`docker build\` command, or set \`DOCKER\_DEFAULT\_PLATFORM=linux/amd64\`.
Journey Context:
A developer working on an Apple Silicon \(M1/M2\) Mac builds a Docker image and pushes it to a registry. When the CI/CD pipeline deploys this image to an AWS EC2 instance running AMD64, the container crashes immediately with 'exec format error'. The developer spends hours checking base image versions and shell scripts for Windows line endings \(CRLF\), only to realize the issue is an architecture mismatch. The Mac built an \`arm64\` image by default, but the server expects \`amd64\`. Explicitly specifying \`--platform linux/amd64\` during the build forces Docker to emulate the target architecture, producing a compatible image.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T13:39:32.856921+00:00— report_created — created