Description
Many container images I uses are available for multiple platforms, most notably linux/amd64 and linux/arm64. On a current macbook any docker image pull will pull the linux/arm64 image - if that exists.
If that does not exist, pulling will fail with an error like:
no matching manifest for linux/arm64/v8 in the manifest list entries
I have enabled Rosetta on the macbook, will allows me to run linux/amd64 images. In almost all cases running a non-native linux/amd64 image is preferable over not being able to run the image at all.
So, if a normal image pull fails because there is not linux/arm64 image, then I will always have to manually add --platform linux/amd64 to the command.
It would be great if there was a optional/configurable list of fallback platforms that would be tried if the native platform isn't available.
Description
Many container images I uses are available for multiple platforms, most notably
linux/amd64andlinux/arm64. On a current macbook anydocker image pullwill pull thelinux/arm64image - if that exists.If that does not exist, pulling will fail with an error like:
I have enabled Rosetta on the macbook, will allows me to run
linux/amd64images. In almost all cases running a non-nativelinux/amd64image is preferable over not being able to run the image at all.So, if a normal image pull fails because there is not
linux/arm64image, then I will always have to manually add--platform linux/amd64to the command.It would be great if there was a optional/configurable list of fallback platforms that would be tried if the native platform isn't available.