Report #71193
[bug\_fix] standard\_init\_linux.go:228: exec user process caused: exec format error
Build the image with the correct target platform using \`docker build --platform linux/amd64\`, or ensure the base image and compilation target match the deployment architecture.
Journey Context:
A developer gets a new Apple Silicon \(M1/M2\) Mac and builds a Docker image for their Go application. It builds successfully and runs fine locally. When they push it to AWS ECS or a Linux AMD64 server, the container crashes immediately with 'exec format error'. They suspect corrupted binaries or a broken base image. After hours of checking SHA sums, they realize Docker Desktop on Apple Silicon defaults to building linux/arm64 images. The AMD64 server cannot execute the ARM64 binary. The fix works because explicitly setting \`--platform linux/amd64\` forces Docker to use Rosetta emulation \(or QEMU\) during the build, producing an x86\_64 binary that the deployment server can execute.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T02:04:33.558428+00:00— report_created — created