Dockerfile linkslatest, 1.565.3 (Dockerfile)weekly, 1.585 (Dockerfile)1.584 (Dockerfile)1.583 (Dockerfile)1.582 (Dockerfile)1.581 (Dockerfile)1.580 (Dockerfile)1.579 (Dockerfile)1.578 (Dockerfile)1.577 (Dockerfile)1.576 (Dockerfile)1.575 (Dockerfile)1.574 (Dockerfile)1.573 (Dockerfile)1.572 (Dockerfile)1.571 (Dockerfile)1.570 (Dockerfile)1.569 (Dockerfile)1.568 (Dockerfile)1.567 (Dockerfile)1.566 (Dockerfile)1.565 (Dockerfile)For more information about this image and its history, please see the relevant
manifest file
(library/jenkins)
in the docker-library/official-images GitHub
repo.
The Jenkins Continuous Integration and Delivery server.
This is a fully functional Jenkins server, based on the Long Term Support release http://jenkins-ci.org/.
docker run -p 8080:8080 jenkins
This will store the workspace in /var/jenkins_home. All Jenkins data lives in there - including plugins and configuration. You will probably want to make that a persistent volume:
docker run --name myjenkins -p 8080:8080 -v /var/jenkins_home jenkins
The volume for the "myjenkins" named container will then be persistent.
You can also bind mount in a volume from the host:
First, ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 102 normally - or use -u root), then:
docker run -p 8080:8080 -v /your/home:/var/jenkins_home jenkins
If you bind mount in a volume - you can simply back up that directory (which is jenkins_home) at any time.
If your volume is inside a container - you can use docker cp
$ID:/var/jenkins_home command to extract the data.
You can run builds on the master (out of the box) buf if you want to attach
build slave servers: make sure you map the port: -p 50000:50000 - which will
be used when you connect a slave agent.
Here is an example docker container you can use as a build server with lots of good tools installed
All the data needed is in the /var/jenkins_home directory - so depending on how you manage that - depends on how you upgrade. Generally - you can copy it out - and then "docker pull" the image again - and you will have the latest LTS - you can then start up with -v pointing to that data (/var/jenkins_home) and everything will be as you left it.
If you have any problems with or questions about this image, please contact us through a GitHub issue.
You can also reach many of the official image maintainers via the
#docker-library IRC channel on Freenode.
You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.
Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.