cool-easter-32542
07/14/2025, 6:00 PMbuildx to build a docker image, you may have multiple buildx drivers configured on your system where you want to choose one for pants to use.
Describe the solution you'd like
I'd like
• a global configuration for the docker subsystem (overridable in a docker_image configuration) that allows for selecting the buildx driver by name
• this is used to set the --builder argument used in the docker buildx build command that pants launches (see https://docs.docker.com/reference/cli/docker/buildx/#builder)
Describe alternatives you've considered
The only alternatives I am aware of include
1. Setting the buildx driver outside of pants configuration by setting the default with https://docs.docker.com/reference/cli/docker/buildx/use/
2. Setting BUILDX_BUILDER=<your driver of choice> environment variable as a [docker.env_vars]
Additional context
• This builds on the work started in #15199
• See more context in this thread: https://pantsbuild.slack.com/archives/C046T6T9U/p1751926012583459
pantsbuild/pants