I'm following the instructions here:
http://doc.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker-executor
I definitely have "privileged = true" in my config.toml file and this is the relavent part of my .gitlab-ci.yml:
sampleProjectDockerBuild:
stage: docker
image: docker:latest
services:
- docker:dind
before_script:
- docker info
script:
- docker build -t my-docker-image .
But I am getting the following error:
gitlab-ci-multi-runner 1.1.3 (a470667)
Using Docker executor with image docker:latest ...
Pulling docker image docker:dind ...
Starting service docker:dind ...
Waiting for services to be up and running...
Pulling docker image docker:latest ...
...
$ docker info
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
ERROR: Build failed: exit code 1
Am I missing something?
Maybe docker-compose don't equal version to docker-machine. You sure both save version
The runner was a CentOS 6 machine, which has recently lost support. I tried this again on a CentOS 7 machine and everything just worked.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.