title: GitLab CI runner can't connect to tcp://localhost:2375 in kubernetes
body: <p>I followed this doc to install Gitlab on GKE :
  <a href="https://docs.gitlab.com/ee/install/kubernetes/gitlab_chart.html" rel="nofollow noreferrer">https://docs.gitlab.com/ee/install/kubernetes/gitlab_chart.html</a></p>
  
  <p>My installation's parameters are :</p>
  
  <pre><code>helm upgrade --install gitlab gitlab/gitlab \
    --timeout 600 \
    --set global.hosts.domain=***** \
    --set global.hosts.externalIP=***** \
    --set certmanager-issuer.email=***** \
    --set gitlab.migrations.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-rails-ce \
    --set gitlab.sidekiq.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-sidekiq-ce \
    --set gitlab.unicorn.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-unicorn-ce \
    --set gitlab.unicorn.workhorse.image=registry.gitlab.com/gitlab-org/build/cng/gitlab-workhorse-ce \
    --set gitlab.task-runner.image.repository=registry.gitlab.com/gitlab-org/build/cng/gitlab-task-runner-ce \
    --set gitlab.gitlab-runner.runners.privileged=true \
    --set gitlab.gitlab-runner.runners.cache_dir="cache"
  </code></pre>
  
  <p>Then I created my .gitlab-ci.yaml :</p>
  
  <pre><code>image: docker:latest
  
  services:
    - docker:dind
  
  variables:
    DOCKER_HOST: tcp://localhost:2375
  
  stages:
    - package
  
  package:
    stage: package
    before_script:
      - echo "${GKE_JSON_AUTH}" &gt; gke-project-auth.json || exit 1
      - cat gke-project-auth.json | docker login -u _json_key --password-stdin https://eu.gcr.io || exit 1
    script:
      - docker info
  </code></pre>
  
  <p>I have read many threads, all get the solution in <code>DOCKER_HOST</code> and <code>privileged</code>parameter, but I've always got this error :</p>
  
  <blockquote>
    <p>Cannot connect to the Docker daemon at tcp://localhost:2375. Is the
    docker daemon running?</p>
  </blockquote>
  
  <p>I also tried to put in a values.yaml file :</p>
  
  <pre><code>runners:
    privileged: true
  </code></pre>
  
  <p>and exectue this command :</p>
  
  <pre><code>helm upgrade --reuse-values gitlab gitlab/gitlab -f values.yaml
  </code></pre>
  
  <p>But without unsuccessfully...</p>
  
  <p>Any idea? Thanks!</p>