https://pantsbuild.org/ logo
#general
Title
# general
r

rough-vase-83553

11/14/2022, 10:46 PM
It seems like Pants isn't able to run a Docker target that hasn't been published yet. It keeps trying to reach the Docker registry and complains because the image can't be found. Is this intentional?
1
Hmm then again I also can't
docker run $generated_image_tag
c

curved-television-6568

11/14/2022, 10:51 PM
no, not intentional. if you run
./pants -ldebug package <target>
you’ll get the docker build output in the logs in case there’s some indication of an issue there.. ?
r

rough-vase-83553

11/14/2022, 11:02 PM
So I think this might be because the image by default builds under linux/arm64... although setting DOCKER_DEFAULT_PLATFORM=linux/amd64 causes another problem
Although that problem might be a bug on my part
Yeah I think that was a simple bug on my end. It looks like the platform is important. Without a matching platform it seems Pants tries to fetch an image from the registry.