title: I am unable to use docker commands in google/cloud-sdk image
body: <p>I am running a yml script in gitlab where I am using gitlab-ci.yaml to create a docker image and push it to Google Registry. Where as I am unable to run the commands. Here is my gitlab code.</p>
  
  <pre><code>image: docker:latest
  services:
    - docker:dind
  
  variables:
    SPRING_PROFILES_ACTIVE: gitlab-ci
  
  stages:
    - build
    - imagecreation
    - deploy
  
  maven-build:
    image: maven:3-jdk-8
    stage: build
    script: "mvn package -B"
    artifacts:
      paths:
        - target/*.war
  
  docker-build:
    image: google/cloud-sdk
    stage: imagecreation
    script:
    - docker build -t gcr.io/project-test-to/counter .
    - gcloud docker -- push gcr.io/project-test-to/counter
  
  k8s-deploy:
    image: google/cloud-sdk
    stage: deploy
    script:
    - echo "$GOOGLE_KEY" &gt; key.json
    - gcloud auth activate-service-account --key-file key.json
    - gcloud config unset container/use_client_certificate
    - gcloud container clusters get-credentials gitlab --zone us-central1-a --project project-test-to
    - kubectl apply -f deployment.yaml
  </code></pre>
  
  <p>Her is the error that I am getting.Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  ERROR: Job failed: exit code 1</p>
  
  <p>How can I run the docker commands in this image?(google/cloud-sdk)</p>