nutritious-hair-72580
11/02/2023, 11:00 AMdocker buildx build , by default it doesn't save the build output locally. It can do with the build option --output type=image (or shorthand as --load ).
Currently, this output doesn't support multiplatform images, though it looks like it does with the containerd image store, which is currently in beta.
As it is, this is a problem with the pants publish goal for docker images, as it expects that the image exists locally after running package .
I'm thinking the best way forward here is to add support for the output option and default it to type=image , when using buildx.
Related, I'm wondering if there should be an explicit config option in pants to enable buildx - currently it may or may not be used depending on the docker version and the setting of env var DOCKER_BUILDKIT.