fancy-daybreak-6234801/11/2023, 2:21 AM
target within a github action. It's telling me that it cant connect to docker:
Whats weird is that if in the same step i do
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
to the same dockerfile pants points to in
docker build .
, it works properly and builds all layers except the ones using the pants context (i.e
careful-address-8980301/11/2023, 3:10 AM
). 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)