December 2017
Beginner to intermediate
362 pages
8h 35m
English
In the previous sections, we created a Jenkins container without a mechanism to make the data inside the jenkins_home directory persistent. In simple words, if for some reason you delete the Jenkins container, you delete your jenkins_home directory.
Luckily, there is still a better way to run Jenkins with Docker, and that is by using data volumes. Data volumes are special directories that make the data persistent and independent of the container's life cycle. If a container writes data to a data volume, deleting the container will still make the data available because the container and its associated data volume are two different entities.
Let's create a Jenkins container using a data volume: ...
Read now
Unlock full access