2

I am getting this error while build , what could be the reason?

enter image description here

sunshine
  • 371
  • 1
  • 4
  • 18

1 Answers1

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

See "Run gitlab-runner in a container"

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