Docker on Apple Silicon: 'exec format error' after deploying an image built on a Mac
@devsingh05▲ 13 net votes
Images built on an M-series Mac are linux/arm64 by default; most cloud hosts run linux/amd64, so the container dies with exec format error. Build for the target: docker buildx build --platform linux/amd64 -t app . (or set platform in compose). The reverse problem, 'no matching manifest for linux/arm64/v8', means an image has no arm64 variant; add --platform linux/amd64 to run it under emulation.