-
Notifications
You must be signed in to change notification settings - Fork 877
Description
Description
Supporting building multi-platform images (podman buildx)
Detail
This ticket is a request for feature, originally from containers/podman#3063 .
docker buildx [1][2] is to enable building and running multi-platform container images.
I would like to see that podman has like the feature.
$ docker buildx build --platform linux/arm64 ...
RHEL 8 started supporting multi arch including ARM 64 bit.
Quay 3 started supporting multi arch including ARM 64-bit. [3]
So, it might be a good timing for podman to support this feature.
docker buildx is using QEMU internally to do it.
As an another way to achieve this, there is qemu-user-static [4] also using QEMU.
According to the docker buildx's article [2], maybe both have similar logic in it.
This fast and lightweight container OS comes packaged with the QEMU emulator, and comes pre-configured with binfmt_misc to run binaries of any supported architecture.
But docker buildx looks much easier than qemu-user-static.
- [1] docker buildx GitHub: https://github.com/docker/buildx#building-multi-platform-images
- [2] docker buildx article: https://engineering.docker.com/2019/04/multi-arch-images/
- [3] https://www.redhat.com/en/blog/introducing-red-hat-quay-3-registry-your-linux-and-windows-containers
- [4] qemu-user-static: https://github.com/multiarch/qemu-user-static