I started a jenkins container from the official jenkins image and added some plugins like git. Also, I made some basic configurations like authentication settings and user registration, then I added a jenkins job and it worked quite well in the running jenkins container. Question is when I commited this jenkins container as a new version of jenkins image and re-ran the new image, everything was lost: no plugins added, no user registered, no jenkins job created. Does anyone can help me to make a new jenkins image with all my configurations added? Thank you all.
Regards, yuliang
you have to backup your data before rerun jenkins image:
docker cp jenkins-dv:/var/jenkins_home /tmp/jenkins-backup
also you can check this very helpful tutoriel DOCKER & JENKINS: DATA THAT PERSISTS explain HOST MOUNTED VOLUMES and DATA VOLUME CONTAINERS
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments