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
This article example shares the specific code of ...
[LeetCode] 175.Combine Two Tables Table: Person +...
The Golden Rule Always follow the same set of cod...
Table of contents 1. Baidu Encyclopedia 1. MySQL ...
background When I was using Docker these two days...
Preface When writing front-end pages, we often us...
Preface In MySQL, we can use the EXPLAIN command ...
The <base> tag specifies the default address...
Table of contents Breaking down components Left P...
Sometimes we need to remotely run programs on the...
The pitfalls 1. Many tutorials on the Internet wr...
Table of contents 1. Values within loop objects...
The downloaded version is the Zip decompression v...
Preface HTTP is a stateless communication protoco...
Problem Description 1. Database of the collection...