Docker in Docker service probably didn't start properly
Followed the guide about how to get the docker in docker executor working so I can use docker commands in my pipeline. When my job runs the service (docker:dind
) gives the following warning.
*** WARNING: Service runner-2d418560-project-3873077-concurrent-0-docker-0 probably didn't start properly.
Error response from daemon: Cannot link to a non running container: /runner-2d418560-project-3873077-concurrent-0-docker-0 AS /runner-2d418560-project-3873077-concurrent-0-docker-0-wait-for-service/runner-2d418560-project-3873077-concurrent-0-docker-0
2017-10-26T16:02:24.418927135Z mount: mounting none on /sys/kernel/security failed: Permission denied
2017-10-26T16:02:24.418954540Z Could not mount /sys/kernel/security.
2017-10-26T16:02:24.418958868Z AppArmor detection and --privileged mode might break.
2017-10-26T16:02:24.423454909Z mount: mounting none on /tmp failed: Permission denied
*********
Since the daemon from this service does not start I cannot run any docker commands. When trying it gives this error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
One time I retried the job and the service started without warning, but have not been able to get that to happen again. Is there anyway to get this service to consistently start properly?
Guide I followed: https://docs.gitlab.com/ce/ci/docker/using_docker_build.html#use-docker-in-docker-executor