E.g. if I wanted to start building ARM binaries on a x86 host, is that the sort of thing this would enable?
E.g. if I wanted to start building ARM binaries on a x86 host, is that the sort of thing this would enable?
docker buildx build --platform linux/amd64,linux/arm64 .
I constantly use buildx to build x86 images on my M1 so that I can run these images in my x86 Kubernetes cluster.
I found this article with some overview and example command lines: https://www.docker.com/blog/multi-arch-images/ . As best I can tell, you don't actually need a custom builder. You can just skip the `docker buildx create` and go straight to `docker buildx build` after one workaround below.
I needed the workaround from this comment to make it work (to install qemu? not sure): https://github.com/docker/buildx/issues/495#issuecomment-754...
Overall a very slick experience for going from zero to multiarch containers. Well done, Docker.