From 5527c802cb0ade05ec93fec272ed37a5a6918834 Mon Sep 17 00:00:00 2001 From: Lars Beckers <larsb@fsmpi.rwth-aachen.de> Date: Thu, 29 Aug 2019 21:13:34 +0200 Subject: [PATCH] Unset DOCKER_HOST for inner docker service --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14bd71b..806c6ad 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,7 +11,7 @@ variables: # Note that if you're using Kubernetes executor, the variable should be set to # tcp://localhost:2375 because of how Kubernetes executor connects services # to the job container - DOCKER_HOST: tcp://localhost:2375/ + DOCKER_HOST: tcp://docker:2375/ # When using dind, it's wise to use the overlayfs driver for # improved performance. DOCKER_DRIVER: overlay2 @@ -20,7 +20,8 @@ variables: services: - name: docker:dind - entrypoint: ["dockerd"] + entrypoint: ["env", "-u", "DOCKER_HOST"] + command: ["dockerd"] stages: - base -- GitLab