cool-easter-32542
11/15/2023, 7:23 PMDockerfile: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:
$ 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