title: GitLab CI starts unexpected docker:dind version
body: <p><strong>I wanted to use docker:dind service in GitLab CI to build docker image, but the runner kept starting the wrong dind version (19.03.8-dind) and show the error message below.</strong></p>
  <p><code>Error response from daemon: stat /var/lib/docker/tmp: no such file or directory</code></p>
  <p>Recently, I updated Docker version from 18.06.1 to 19.03.12 in the host server running my gitlab-runner and occurred the problem.</p>
  <p>NOTE: It worked all good before this upgrade. I tried to downgrade the Docker version to 18.06.1, no luck this time. The GitLab Runner uses this Docker as the executor.</p>
  <p>I previously used 19.03.8-dind to serve as the docker daemon. I used <strong>docker system prune</strong> to remove every image in the host, but the error still existed.</p>
  <p>I follow the <a href="https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#tls-disabled" rel="nofollow noreferrer">GitLab Docs</a> to configure the .gitlab-ci.yml.</p>
  <p>Here is the .gitlab-ci.yml file</p>
  <pre><code>stages:
    - build
  
  docker build:
    stage: build
    # this is my customized docker image with golang:1.14 and docker:19.03.0
    image: go-docker:1.14-19.03.0 
    services:
      - name: docker:19.03.0-dind
    variables:
      DOCKER_TLS_CERTDIR: &quot;&quot;
      DOCKER_HOST: tcp://docker:2375
    tags:
      - linux
    before_script:
      - docker version
    script:
      - docker build ......
  
  </code></pre>
  <p>and <strong>docker version</strong> output is</p>
  <pre><code> $ docker version
   Client: Docker Engine - Community
    Version:           19.03.0
    API version:       1.40
    Go version:        go1.12.5
    Git commit:        aeac9490dc
    Built:             Wed Jul 17 18:11:50 2019
    OS/Arch:           linux/amd64
    Experimental:      false
   Server: Docker Engine - Community
    Engine:
     Version:          19.03.8
     API version:      1.40 (minimum version 1.12)
     Go version:       go1.12.17
     Git commit:       afacb8b7f0
     Built:            Wed Mar 11 01:30:32 2020
     OS/Arch:          linux/amd64
     Experimental:     false
    containerd:
     Version:          v1.2.13
     GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
  </code></pre>
  <p>The GitLab version is 12.10.3 and GitLab-runner is 12.10.2.</p>
  <p>What should I do to fix the problem while still using the dind approach?</p>