Delete the docker container and then establish the configuration unchanged.

enter the following construction command according to jenkins official website:

docker run 
--rm 
-u root 
-p 8080:8080 
-v jenkins-data:/var/jenkins_home 
-v /var/run/docker.sock:/var/run/docker.sock 
-v "%HOMEPATH%"/home:/home jenkins

after closing the container, re-enter the above command and find that the newly created container is the same as the deleted one. There is no need to re-enter the activation code, and all the configured accounts are there.
does any boss know what"s going on? What is the configuration of the above command Synchronize?

Mar.01,2021

because you mounted the data locally, and you didn't delete the local files

Menu