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

