Report #67843
[bug\_fix] standard\_init\_linux.go:228: exec user process caused: exec format error
Build the image with the correct target platform using --platform linux/amd64 in the FROM instruction or via docker build --platform linux/amd64.
Journey Context:
A developer builds a Docker image on an Apple Silicon \(ARM64\) Mac. It runs perfectly locally. They push it to a registry and deploy it to an AWS EC2 instance running AMD64. The container crashes instantly with 'exec format error'. They dive into application logs finding nothing, then realize the binary was compiled for ARM64 architecture. The server cannot execute an ARM64 binary. By specifying --platform linux/amd64, BuildKit pulls the AMD64 base image and emulates the build via QEMU, producing a compatible binary.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T20:21:22.665744+00:00— report_created — created