concept multi - arch image in category docker

appears as: multi-arch images, multi-arch image, A multi-arch image
Learn Docker in a Month of Lunches

This is an excerpt from Manning's book Learn Docker in a Month of Lunches.

The manifest list is the set of variants for the image. The Windows Nano Server image isn’t truly multi-architecture, it will only run on Windows containers--there are no Linux variants in the manifest list. The basic principle is that the architecture for the image has to match the architecture of the Engine, but there are a few nuances--Linux images can be pulled for non-matching CPU architectures, but containers will fail with an obscure “user process caused ‘exec format error’” message. Some Windows engines have an experimental feature called Linux Containers on Windows (LCOW), so they can run Linux containers (but complex apps will fail with even more obscure logs). It’s best to stick to the matching architecture for the engine, and multi-arch images let you tailor the image to each OS and CPU if you need to.

Figure 16.4 Use a multi-stage Dockerfile based on multi-arch images to build your own multi-arch image