Reputation: 47
I was wondering how does docker pull work (specifically from docker hub) When i was looking at a tag of an image e.g nodejs image and noticed the os/arch in there there were multiple. When i run docker pull how does it choose which one to get?
Upvotes: 4
Views: 927
Reputation: 4253
Multi-arch images are built into the Dockerfile/manifests. At build time the respective arch files are copied over, and when pulling, the daemon determines which to use.
Here's a reference of the actual process of building a multi-arch image:
https://lobradov.github.io/Building-docker-multiarch-images/#how-does-it-work
When you're looking at a page like you linked, where you can select an arch from the drop-down, that's showing the list of available archs that the image maintainer added to that image via the process mentioned in the link I referenced.
Upvotes: 1