<#20189 Issues with buildx> Issue created by <kuza...
# github-notifications
c
#20189 Issues with buildx Issue created by kuza55 Describe the bug I am trying to use the new buildx features from source. I have a multi-stage build with a docker_image target that builds on top of a base target. With the regular builder, things work fine, but with the buildx builder, I am running into this error today:
Copy code
Dockerfile:2
--------------------
   1 |     ARG BASE_IMAGE=docker/base:base
   2 | >>> FROM $BASE_IMAGE
   3 |
   4 |     RUN pip install opentelemetry-distro opentelemetry-exporter-otlp
--------------------
ERROR: failed to solve: europe-west4-docker.pkg.dev/smart-shoreline-391915/espresso-docker/base/base:0.1: failed to authorize: failed to fetch oauth token: unexpected status: 403 Forbidden
The error here is probably unrelated to pants, docker is failing to pull this image from a remote repo, however docker should not need to pull this image since it exists locally because it was just built by pants:
Copy code
$ docker images
REPOSITORY                                                                                       TAG               IMAGE ID       CREATED          SIZE
europe-west4-docker.pkg.dev/smart-shoreline-391915/espresso-docker/base/base                     0.1               f8d553f88c7e   14 hours ago     534MB
When I disable buildx, my build works fine. Pants version From source on main OS Ubuntu via WSL pantsbuild/pants