From 0961c858092225a029e14e58352174bd1f15869c Mon Sep 17 00:00:00 2001 From: Teemu Autto <teemu@rautakuu.org> Date: Mon, 9 Jan 2023 02:13:27 +0000 Subject: [PATCH] dind: use network address for docker. --- .gitlab-ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 63a91e40..88dd6816 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,8 +25,15 @@ variables: ## (Optional) More verbose output from pipeline #CI_DEBUG_TRACE: "true" + # When using dind service, we need to instruct docker to talk with + # the daemon started inside of the service. The daemon is available + # with a network connection instead of the default + # /var/run/docker.sock socket. + DOCKER_HOST: tcp://docker:2376 + # shared volume for docker-in-docker DOCKER_TLS_CERTDIR: "/certs" + DOCKER_CERT_PATH: "$DOCKER_TLS_CERTDIR/client" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" -- GitLab