What architecture to use for Apple M1 docker image: arm/v5, arm/v7, arm64/v8?

Viewed 2146

I want to build my docker image for the new Apple M1 CPU. I went to see architecture in one of official docker images and I see the following ARM architectures listed:

linux/arm/v5
linux/arm/v7
linux/arm64/v8

What's the difference and which one should I use?

2 Answers

M1 / Apple Silicon uses the linux/arm64/v8 architecture. Docker will show a warning when running a non-native image:

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested

linux/arm64 seems to be working just fine

Related