0. When I made this document, it was around December 2019, and er2.200 was the latest version. 1. Download the image docker pull jenkins/jenkins Be sure to install the latest version of Jenkins. Many plug-ins cannot be installed with the old version. 2. View detailed information of Jenkins docker inspect jenkins:2.200 3. Create a jenkins directory (for persistence) mkdir /home/jenkins_home 4. Start the container docker run -d --name Jenkins_01 -p 8081:8080 -v \ /home/jenkins_home:/home/jenkins_home jenkins:2.200 【Note】You may encounter iptables problems: iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 8080 -j DNAT --to-destination 192.168.40.142:8080 ! -i br-ff45d935188b: iptables: No chain/target/match by that name. (exit status 1) Restart Docker systemctl restart docker 5. Check whether the started jenkins container is healthy docker ps | grep jenkins 6. Web access ip:port 7. Enter the container docker exec -it Jenkins_01 /bin/bash 8. Follow the prompts to view the password (in the container) cat /var/jenkins_home/secrets/initialAdminPassword Sun has tested This is the end of this article about the detailed tutorial on deploying Jenkins based on docker. For more relevant content about deploying Jenkins with docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Implementing a web player with JavaScript
>>: Method of realizing automated deployment based on Docker+Jenkins
<br />It has been no more than two years sin...
Table of contents The server runs jupyter noteboo...
The meta tag is used to define file information an...
Sometimes it is slow to download large network fi...
Table of contents Complex query and step-by-step ...
Some MySQL tables may contain duplicate records. ...
Effect picture: 1. Introduction Your own applet n...
Preview knowledge points. Animation Frames Backgr...
Visual Studio Code is a powerful text editor prod...
As a front-end developer, I can’t avoid IE’s pitf...
1. Download MySQL Click on the official website d...
When using docker images, images with both REPOSI...
Table of contents Preface 1. Use for...of to iter...
** Detailed graphic instructions for installing y...
When you use HTML div blocks and the middle of th...