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

thankful-optician-22583

08/12/2019, 9:00 PM
Hello I am running Pulumi with GitlabCI and I noticed that the pulumi/pulumi:v0.17.10 image does not have a docker daemon. Is this expected? Did anyone encounter the error.
Copy code
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
w

white-balloon-205

08/12/2019, 9:02 PM
You would need to mount the docker socket into the container (which has some non-trivial security implications). I do not believe there is anything the image needs to do specifically - this is something you can configure in the environment you are running it.
t

thankful-optician-22583

08/12/2019, 9:05 PM
Thank you luke! I will look into this
I guess in Gitlab, the yaml file only specifies the image & entrypoint and in order to mount a volume, i would have to configure the runners to mount the volume as discussed here: https://docs.gitlab.com/runner/executors/kubernetes.html Do you think it would be worth while to mention that in the documentation here? Because if our index.ts contains building images we would need to mount the volume on top of the image.
b

best-xylophone-83824

08/13/2019, 9:51 AM
@thankful-optician-22583, we run it too, I'd recommend not to mess with docker socket and use DOCKER_HOST env var and access docker daemon over TCP
2 Views