chingis
chingis

Reputation: 1780

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

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?

Upvotes: 11

Views: 7415

Answers (2)

fnkr
fnkr

Reputation: 10075

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

Upvotes: 9

chingis
chingis

Reputation: 1780

linux/arm64 seems to be working just fine

Upvotes: 1

Related Questions