<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>

<p>Apparently, according to <a href="https://gitlab.com/charts/gitlab/issues/478#note_195998015" rel="nofollow noreferrer">this</a>, this issue is more recently related to docker's update of its image <code>docker:dind</code> which use the last version of docker server which is not listening anymore at <code>2375</code> but at <code>2376</code>.</p>

<p>So I updated my <code>.gitlab-ci.yml</code> as suggested in that entry and it worked for me:</p>

<pre><code>image: docker:stable

services:
  - docker:18.09-dind

...
</code></pre>

<p>[UPDATE]</p>

<p>This was a temporary workaround. The <code>docker:stable</code> and <code>docker:stable-dind</code> images are now fixed. </p>
