title: Jenkins always pull docker image from a declarative pipeline agent definition
body: <p>I have a working Jenkins pipeline defined with <code>agent {any}</code>.</p>
  
  <p>But I want to try running the tests on a docker image. According to documentation I can do that the following way:</p>
  
  <pre><code>pipeline {
       agent {
           docker { image 'centos/python-27-centos7:latest' }
       }
       stages {
          ...
       }
  }
  </code></pre>
  
  <p>The problem is that my instance of Jenkins is offline and with this configuration it will try to <code>docker pull</code> the image when running the project.</p>
  
  <p>However I have the centos/python-27 image loaded in the docker (visible with <code>docker images</code> and it can be run with <code>docker run -i -t centos/python-27-centos7 /bin/bash</code></p>
  
  <p>Is there any way I can configure the agent in Jenkins so it doesn't try to <code>pull</code> the image from Docker Hub?</p>