fancy-daybreak-62348
01/11/2023, 2:21 AMpackage
a docker_image
target within a github action. It's telling me that it cant connect to docker:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
Whats weird is that if in the same step i do docker build .
to the same dockerfile pants points to in docker_image
, it works properly and builds all layers except the ones using the pants context (i.e foo.bar/main.pex
)careful-address-89803
01/11/2023, 3:10 AM/run/user/$UID/docker.sock
). Normally that works by setting the envvar DOCKER_HOST . But pants tries to clean the environment to prevent other stuff from leaking in. Try setting the envvar passthrough like [here](https://www.pantsbuild.org/docs/docker#docker-configuration)