Docker and CI/CD · Middle · Question 29 of 75
An image built on an Apple Silicon Mac fails on an x86 server with exec format error. Why?
- 1Images built on macOS only run on macOS servers
- 2The server's Docker version is too old to run any Mac images
- ✓Correct answer: It was built for arm64; build for linux/amd64 or multi-platform
Explanation
Images contain CPU-specific binaries. docker buildx build --platform linux/amd64,linux/arm64 produces a multi-arch image with the right variant for each host.