narrow-vegetable-37489
11/30/2021, 2:12 PM./pants publish
and DOCKER_HOST
in our CI environment. ./pants package
is connecting to the custom daemon address specified in DOCKER_HOST
just fine, but when running ./pants publish
I get "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?".narrow-vegetable-37489
11/30/2021, 2:12 PM$ echo $DOCKER_HOST
<tcp://dockerdaemon:2375/>
$ ./pants publish ::
04:59:07.04 [INFO] Starting: Building docker image <redacted>:latest.
04:59:18.63 [INFO] Completed: Building docker image <redacted>:latest.
04:59:18.64 [INFO] Built docker image: <redacted>:latest
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
๐ <redacted>:latest failed.
Unsetting DOCKER_HOST
, or changing it to something invalid, makes the "Cannot connect to..." error show up even before building. So it seems like it's ignoring the value set in DOCKER_HOST
for the part where it pushes to the registry.modern-wolf-36228
11/30/2021, 2:17 PM[docker]
env_vars = ["DOCKER_HOST"]
on pants.toml
, I guess?hundreds-father-404
11/30/2021, 2:17 PMmodern-wolf-36228
11/30/2021, 2:18 PMhundreds-father-404
11/30/2021, 2:23 PMnarrow-vegetable-37489
11/30/2021, 2:24 PM[docker]
env_vars = [
"DOCKER_HOST",
]
hundreds-father-404
11/30/2021, 2:24 PMnarrow-vegetable-37489
11/30/2021, 2:25 PMenv_vars
from pants.toml
then ./pants package
starts failing too. With env_vars
only ./pants publish
fails and only after building the image (when pushing to the registry I assume).hundreds-father-404
11/30/2021, 2:28 PMnarrow-vegetable-37489
11/30/2021, 2:30 PMnarrow-vegetable-37489
11/30/2021, 2:41 PMhundreds-father-404
11/30/2021, 2:59 PMcurved-television-6568
11/30/2021, 3:05 PMneeds-cherrypick
label on itโฆ ๐ but apart from that, Iโd forgot about it already..witty-crayon-22786
11/30/2021, 5:47 PMcurved-television-6568
11/30/2021, 5:48 PMcurved-television-6568
11/30/2021, 7:57 PMwitty-crayon-22786
11/30/2021, 7:57 PMwitty-crayon-22786
11/30/2021, 7:58 PMwitty-crayon-22786
12/01/2021, 6:12 AM