title: Gitlab CI/CD runner and docker connection configuration
body: <p>I am trying to configure gitlab CI/CD runner. On the runner, I have deployed maven and java that builds my project and executes the test. So far so good, but the final step which it should pakage the code as a docker image and deploy fails. Here is the script which runs fine in cloud.But it says docker command not found in local, and I did not understand the workflow. Now for that to run, am I supposed to install docker on to my runner ? As the runner itself is a container inside docker. I could not figure out what should I do for this step to run. Please help. </p>
  
  <pre><code>docker-build:
    stage: package
    script:
    - docker build -t registry.gitlab.com/imran_yusubov/gs-spring-boot-docker .
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
    - docker push registry.gitlab.com/imran_yusubov/gs-spring-boot-docker
  </code></pre>