Error while running a test locally with docker:dind
Summary
I have a pipeline stage that uses the docker:dind image. I am trying to run that locally but docker fails to start in the docker container, causing the local build to fail.
Steps to reproduce
I ran gitlab-ci-multi-runner exec docker test
Actual behavior
$ gitlab-ci-multi-runner exec docker test
Running with gitlab-ci-multi-runner 1.10.2 (d171b73)
Using Docker executor with image docker:latest ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Waiting for services to be up and running...
*** WARNING: Service runner--project-1-concurrent-0-docker probably didn't start properly.
API error (500): Cannot link to a non running container: /runner--project-1-concurrent-0-docker AS /runner--project-1-concurrent-0-docker-wait-for-service/runner--project-1-concurrent-0-docker
2017-03-20T09:58:02.662101006Z mount: permission denied (are you root?)
2017-03-20T09:58:02.662124377Z Could not mount /sys/kernel/security.
2017-03-20T09:58:02.662128662Z AppArmor detection and --privileged mode might break.
2017-03-20T09:58:02.664207451Z mount: permission denied (are you root?)
*********
Pulling docker image docker:latest ...
Running on runner--project-1-concurrent-0 via Abhisheks-MacBook-Pro.local...
Cloning repository...
Cloning into '/builds/project-1'...
done.
Checking out 3b975ae1 as end_to_end...
Skipping Git submodules setup
$ docker info
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
ERROR: Build failed: exit code 1
FATAL: exit code 1
Expected behavior
The test should run
Environment description
I tried this on a macOS laptop using docker for mac and also on a linux VM.
Used GitLab Runner version
Running with gitlab-ci-multi-runner 1.10.2 (d171b734)