Report #14227
[bug\_fix] standard\_init\_linux.go:228: exec user process caused: exec format error
Build the image with the correct target platform flag, e.g., docker build --platform linux/amd64, or ensure the CI pipeline matches the deployment architecture.
Journey Context:
A developer builds a Docker image on an Apple Silicon \(ARM64\) Mac. It builds and runs perfectly locally. They push it to a registry and deploy to an AWS EC2 instance running AMD64. The container crashes instantly with 'exec format error'. They check application logs, look for missing shared libraries, and suspect corrupted binary downloads. They eventually realize the image was built as linux/arm64 by default, and the AMD64 server cannot execute ARM instructions. The fix is explicitly setting --platform linux/amd64 during the build to match the target deployment environment, ensuring the compiled binaries match the host OS architecture.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T20:55:27.201191+00:00— report_created — created