Report #9536
[bug\_fix] exec user process caused: exec format error
Add \`--platform linux/amd64\` to the \`FROM\` instruction in the Dockerfile, or pass \`--platform linux/amd64\` to \`docker build\`. The root cause is an architecture mismatch: the image was built for ARM64 \(e.g., on an Apple Silicon Mac\) but the deployment target \(e.g., AWS EC2, standard AKS\) runs on AMD64.
Journey Context:
A developer gets a new Apple Silicon Mac and builds a Docker image for their web application. The build succeeds locally. They push the image to a container registry and deploy it to a cloud Kubernetes cluster. The pod immediately crashes with 'exec format error'. They spend hours checking if the base image is corrupted, verifying SHA256 checksums, and tweaking the Dockerfile. They eventually realize that Docker Desktop on Apple Silicon defaults to building linux/arm64 images, while their cloud nodes run linux/amd64. The kernel cannot execute a binary compiled for a different architecture. Adding the platform flag forces the build to emulate or pull the correct architecture base image, resolving the runtime crash.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T08:23:32.517153+00:00— report_created — created