It seems like Pants isn't able to run a Docker tar...
# general
r
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
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
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.