Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
austin
4 years agoFrequent Contributor
op Docker Image is amd64-only
I have a new Apple Silicon (M1) Mac and I was going to try running the docker image for play purposes, but I noticed that it is linux/amd64, and the M1 works better with linux/arm64/v8.
WARNIN...
austin
4 years agoFrequent Contributor
Cool.
I recently needed to look into how to cross-build images, and it’s through buildx
. Specifically, for my case, I needed to ensure that I was building a linux/amd64
version:
sh
docker buildx build --platform linux/amd64 -t $(IMAGE) . --load
If you change that to something like:
sh
docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v6 …
Then you should automatically get a multi-arch image. There’s more to it than just that, and I’ve only scratched the surface of it, but it is impressive.