Docker Multi-Architecture Images

yorek/multiarch-hello-world

Create two images

FROM microsoft/nanoserver:latest
CMD echo "Hello World from Windows"
FROM alpine:latest
CMD echo "Hello World from Linux"

Enable manifest command

docker manifest
docker manifest is only supported when experimental cli features are enabled
{
"experimental": "enabled",
"credsStore": "wincred",
"auths": {
"https://index.docker.io/v1/": {}
}
}

Create a manifest list

yorek/multiarch-hello-world:latest
  • yorek/multiarch-hello-world:linux
  • yorek/multiarch-hello-world:windows
docker manifest create 
yorek/multiarch-hello-world:latest
yorek/multiarch-hello-world:linux
yorek/multiarch-hello-world:windows
docker manifest push yorek/multiarch-hello-world:latest

Inspect a manifest list

docker manifest inspect yorek/multiarch-hello-world:windows

Want to know more?

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store