title: How to look for a docker image on the local machine
body: <p>I have a docker image on my local machine. When I try to run the image using the below Jenkins file.</p>
  
  <pre><code>agent {
  docker {
  image 'gcc/sample:latest'
  args "-v /etc/passwd:/etc/passwd:ro 
          }
      }
  </code></pre>
  
  <p>Then I am getting the following error.</p>
  
  <pre><code>+ docker pull gcc/sample:latest
  
  Pulling repository docker.io/gcc/sample
  
  Error: image gcc/sample:latest not found
  
  script returned exit code 1
  </code></pre>
  
  <p>Is there any way that I can say in Jenkins files to look for docker image at my local machine instead of docker.io for docker image. </p>