gitlab runner unable to parse docker host

1k Views Asked by At

I run a custom gitlab-runner to processes the ci-pipeline of my projects inside docker containers on my own machine. This machine is a centos 7 machine and hence uses podman instead of docker. I once managed to to set everything up and it worked flawlessly for quite some time. I now had to restart the machine and since then all pipelines fail with the error:

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Since we use podman (vi the docker-cli) there is indeed no /var/run/docker.sock (but as I said it strangely worked in the past). So I followd all the steps described here. I verfied that the podman socket is /run/podman/podman.sock, but now I get:

Running with gitlab-runner 15.2.1 (32fc1585)
  on ci_pipeline_hostname key
Preparing the "docker" executor
ERROR: Failed to remove network for build
ERROR: Preparation failed: unable to parse docker host `/run/podman/podman.sock`

I'm obviously not the only one who runs a gitlab runner on a centos based OS. So there must be some way to get it (back to) working.

0

There are 0 best solutions below