- sudo docker container exec -u 0 -it czcjenkins bash
here czcjenkins is my container name.
- wget http://updates.jenkins-ci.org/download/war/2.176.1/jenkins.war
- This jenkins url can be copied from the official jenkins link or download copy save link from existing jenkins login.
- mv ./jenkins.war /usr/share/jenkins/
- chown jenkins:jenkins /usr/share/jenkins/jenkins.war
here jenkins is the user, so keep same as it is only.
- sudo docker restart czcjenkins
316 total views, 4 views today