How to update jenkins in docker container

  1. sudo docker container exec -u 0 -it czcjenkins bash
    here czcjenkins is my container name.
  2. wget
    1. This jenkins url can be copied from the official jenkins link or download copy save link from existing jenkins login.
  3. mv ./jenkins.war /usr/share/jenkins/
  4. chown jenkins:jenkins /usr/share/jenkins/jenkins.war
    here jenkins is the user, so keep same as it is only.
  5. sudo docker restart czcjenkins

552 total views, 2 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.