I am getting this error while build , what could be the reason?
Asked
Active
Viewed 116 times
1 Answers
1
Maybe you did not run gitlab-runner with /var/run/docker.sock mounted as a (file) volume?
See this issue:
Make sure to use:
docker run -d --name gitlab-runner --restart always \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /srv/gitlab-runner/config:/etc/gitlab-runner \
gitlab/gitlab-runner:latest

VonC
- 1,262,500
- 529
- 4,410
- 5,250
-
docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?. See 'docker run --help'. – sunshine Sep 17 '16 at 18:25
-
@sunshine that is a good question. Is docker running? (http://stackoverflow.com/a/33596140/6309) – VonC Sep 17 '16 at 18:29