<#19994 docker backend doesn't use buildx for mult...
# github-notifications
c
#19994 docker backend doesn't use buildx for multi-platform Issue created by mark-thm Describe the bug Docker backend runs
docker build
rather than
docker buildx build
for multi-platform builds specified with
build_platform
set to a list. Single valued lists for
build_platform
will build correctly, but fail to produce a multi-architecture output image. Pants version 2.18.0a0 (verified bug still present on mainline, source linked below) OS MacOS Additional info Docker version 24.0.6, build ed223bc Using
docker build
vs `docker buildx build`: pants/src/python/pants/backend/docker/util_rules/docker_binary.py Line 67 in </pantsbuild/pants/commit/78111bbc105418dc2f419181e67c8ec2f80f439a|78111bb> Experimenting with
docker build
directly:
Copy code
$ docker build --platform=linux/amd64,linux/arm64 .
[+] Building 0.0s (0/0)                                                                                                  docker:desktop-linux
ERROR: Multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
pantsbuild/pants