Tutorial to demonstrate the usage of Docker volumes for sharing data across containers and also, to back up & restore Jenkins configuration from a backed-up docker managed volume.
Thank you for this. I have hundreds of hours of work setting up automation jobs in Jenkins. My biggest fear is something happens and I lose ALL my work. Quick question: I didn't use alpine when I started my Jenkins container for the first time. Do I still need to use "alpine" when backing up my volume?
The first exercise is just to demonstrate how bind mounting of volumes work and I have used alpine for it. For Jenkins, you do not need alpine and all you need to do is launch jenkins image and mount container folder /var/jenkins_home to a folder of your choice (either named volume or bind mount any folder which is available across your cluster - NFS/SAN/Cloud Storage Solution or whatever central storage mechanism that you have). Hope this clarifies.
Thank you for this. I have hundreds of hours of work setting up automation jobs in Jenkins. My biggest fear is something happens and I lose ALL my work.
Quick question: I didn't use alpine when I started my Jenkins container for the first time. Do I still need to use "alpine" when backing up my volume?
The first exercise is just to demonstrate how bind mounting of volumes work and I have used alpine for it. For Jenkins, you do not need alpine and all you need to do is launch jenkins image and mount container folder /var/jenkins_home to a folder of your choice (either named volume or bind mount any folder which is available across your cluster - NFS/SAN/Cloud Storage Solution or whatever central storage mechanism that you have).
Hope this clarifies.