https://pulumi.com logo
#general
Title
# general
f

future-window-78560

09/28/2021, 12:39 AM
Hey! Cannot connect to docker daemon through pulumi while its active. Any guide to resolve this?
b

billowy-army-68599

09/28/2021, 12:40 AM
does
docker info
work?
f

future-window-78560

09/28/2021, 12:41 AM
yes $sudo docker info works
b

billowy-army-68599

09/28/2021, 12:41 AM
ah I notice tyou've set a new docker host, how about: does
docker info -H <tcp://127.0.0.1:2376>
work?`
the error message is telling you it can't read the docker host you've set, so there's a misconfiguration there
f

future-window-78560

09/28/2021, 12:43 AM
$docker info gives this!
b

billowy-army-68599

09/28/2021, 12:45 AM
you need to add your user to the
docker
group so you no longer need sudo, then remove the
pulumi config
setting you've set
Copy code
sudo groupadd docker
sudo usermod -aG docker $USER
f

future-window-78560

09/28/2021, 12:55 AM
Okay added the role! The config is one that I specified. Should it be removed?
https://www.pulumi.com/docs/intro/cloud-providers/docker/setup/ Using this link, I performed the "configure provider step"
b

billowy-army-68599

09/28/2021, 1:14 AM
that's operating system and set up specific
docker
docker info
now work?
f

future-window-78560

09/28/2021, 1:21 AM
yess
77 Views