[SOLVED] Cannot connect to the Docker daemon at tcp://docker:2375. Is the docker daemon running?

I found a simple solution to the Gitlab error: Cannot connect to the Docker daemon at tcp://docker:2375. Is the docker daemon running?

Just register GitLab Runner in privileged mode and set : –docker-volumes “/certs/client”

gitlab-runner register -n \
  --url https://Gitlab_Url/ \
  --registration-token TOKEN \
  --executor docker \
  --description "My Docker Runner" \
  --docker-image "docker" \
  --docker-privileged \
  --docker-volumes "/certs/client"
   

If you like what you are reading, please:

Buy me a coffeeBuy me a coffee

arstech

Start the discussion at forum.arstech.net