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?

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.

Further reading

Problem with a question

Docker and CI/CD · Middle · question 29

Test yourself

Take the Docker and CI/CD · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz