Hello I am running Pulumi with GitlabCI and I noti...
# general
t
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
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
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
@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