Report #7135
[bug\_fix] Container action or service fails immediately with standard\_init\_linux.go: exec user process caused: exec format error when running on GitHub-hosted runners
Build the Docker image with multi-platform support using \`docker buildx build --platform linux/amd64\` or ensure the image is built on an AMD64 machine to match the GitHub-hosted runner architecture \(x86\_64\).
Journey Context:
A developer on an Apple Silicon Mac \(ARM64\) creates a custom GitHub Action using a Dockerfile \(\`runs: image: Dockerfile\`\). They build the image locally with \`docker build .\`, test it with \`act\` or \`docker run\`, and it works perfectly. They push to GitHub, the workflow runs, and immediately fails with "exec format error". The developer investigates and learns that GitHub-hosted runners use AMD64 \(x86\_64\) architecture, while their Mac uses ARM64. The container binary format is incompatible. They install Docker Desktop with Rosetta 2, enable \`docker buildx\`, and rebuild with \`docker buildx build --platform linux/amd64 -t myimage .\`, push to the registry, and the workflow now works on GitHub.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T01:50:43.188467+00:00— report_created — created