在gitlab-ci中,我尝试在Docker容器中运行docker-compose。为此,我使用Docker-in-Docker。要测试一切是否正常,我只需执行一个docker info命令。但是,当我使用docker-compose图像作为我的图像时,我在执行docker info时得到以下错误 ERROR: Cannot connect to the Docker daemon at tcp://docker:2375. Is the docker daemon running? 如果我使用docker本身作为镜像,则docker info命令成功。我对此感到困惑,因为docker-co
我已经使用Helm在Kubernetes上安装了Gitlab,并试图让自动DevOps工作,但我在自动DevOps管道中遇到了以下问题: Executing "step_script" stage of the job script 00:01
$ if [[ -z "$CI_COMMIT_TAG" ]]; then # collapsed multi-line command
$ /build/build.sh
Logging in to GitLab Container Registry with CI credentials...
WARNING! Yo
我正试图在GitLab中构建CI管道。我想问一下如何使码头在GitLab CI工作。
从这个问题:
这两种方法我都是按照指示进行的。但不使用TLS。但还是卡住了。同样的错误
Cannot connect to the Docker daemon at tcp://localhost:2375/. Is the docker daemon running
我试着解决这个问题。跟着下面,
启用TLS
它使用.gitlab-ci.yml和config.toml在Runner中启用TLS。
这是我的.gitlab-ci.yml
image: docker:19.03
variables:
DOCK
我增加了
DOCKER_OPTS="-H tcp://0.0.0.0:2375"
以使Docker在我的主机上可访问(我正在Ubuntu上的Virtualbox中运行Docker )。但是,当我现在尝试运行任何Docker命令时,我只收到以下错误消息:
Cannot connect to the Docker daemon. Is the docker daemon running on this host?
我尝试过sudo服务码头重新启动,并重新启动机器,但没有任何工作。知道问题出在哪里吗?