GitLab CI with docker and dind "mount: permission denied (are you root?)"
Hello!
I'm using gitlab-ci-multi-runner and I'm having a problem with docker and dind. Here's my gitlab CI YML file.
image: docker:latest
before_script:
- apk add --no-cache python
- docker --version
services:
- docker:dind
docker:
script:
- cd docker/ && python build.py
I'm using the latest version of gitlab-ci-multi-runner
Version: 1.4.1
Git revision: fae8f18
Git branch: 1-4-stable
GO version: go1.6.3
Built: Mon, 25 Jul 2016 16:25:59 +0000
OS/Arch: linux/amd64
But I've the following error message:
Running with gitlab-ci-multi-runner 1.4.1 (fae8f18)
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
Starting service docker:dind ...
Waiting for services to be up and running...
*** WARNING: Service runner-33015abb-project-89-concurrent-0-docker probably didn't start properly.
service runner-33015abb-project-89-concurrent-0-docker did timeout
2016-07-29T14:00:58.552656022Z mount: permission denied (are you root?)
2016-07-29T14:00:58.553653511Z Could not mount /sys/kernel/security.
2016-07-29T14:00:58.553662603Z AppArmor detection and --privileged mode might break.
2016-07-29T14:00:58.555400820Z mount: permission denied (are you root?)
*********
Pulling docker image docker:latest ...
I've found this following ticket with the same issue (https://gitlab.com/gitlab-com/support-forum/issues/795) but upgraded to the latest version didn't work for me.
Do you have an idea of the issue?
Thanks!