[英]“Cannot connect to the Docker daemon.” error while building docker image in gitlab-ci docker executor
我正在按照這里的說明進行操作:
http://doc.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker-executor
我的config.toml文件中肯定有“ privileged = true”,這是我的.gitlab-ci.yml的相對部分:
sampleProjectDockerBuild:
stage: docker
image: docker:latest
services:
- docker:dind
before_script:
- docker info
script:
- docker build -t my-docker-image .
但是我收到以下錯誤:
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
我想念什么嗎?
也許docker-compose不等於docker-machine的版本。 您確定兩者都保存了版本
跑步者是一台CentOS 6機器,該機器最近失去了支持。 我在CentOS 7機器上再次嘗試了此操作,一切都正常了。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.