title: Jenkins Pipeline push Docker image
body: <p>My Jenkins job is Pipeline that running in Dockers:</p>
  
  <pre><code>node('docker') {
    //Git checkout           
    git url: 'ssh://blah.blah:29411/test.git'
  
    //Build
    sh 'make'
  
    //Verify/Run
    sh './runme'
  }
  </code></pre>
  
  <p>I'm working with kernel and my sources take a lot of time to get it from GIT (it's about 2GB). I'm looking on how I can push the docker image to use it for the next build so it will already contain most of the sources. I probably need to do:</p>
  
  <pre><code>docker push blahdockergit.blah/myjenkinsslaveimage
  </code></pre>
  
  <p>but it should run outside of the container.</p>