Report #16362
[bug\_fix] exec user process caused: exec format error
Build the image with the correct target platform using 'docker build --platform linux/amd64' or 'docker buildx build --platform linux/amd64'.
Journey Context:
A developer working on an Apple Silicon \(ARM64\) Mac builds a Docker image and pushes it to a registry. The Kubernetes cluster or EC2 instance \(running AMD64\) pulls the image and immediately crashes with 'exec format error'. The developer spends hours checking if the binary was compiled correctly, verifying base image tags, and looking for corrupted downloads. They eventually realize that Docker on Mac builds for the host architecture \(ARM64\) by default unless instructed otherwise. They fix it by explicitly passing '--platform linux/amd64' to the build command, ensuring compatibility with the AMD64 deployment target.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T02:26:27.428037+00:00— report_created — created