First, we need a server with Docker installed. (I have already installed this on my server) The first step is to pull down the imagedocker pull jenkins/jenkins:lts The second step is to create a mapping directory# Create a mapping directory in the appropriate location mkdir -p jenkins_home # Check directory permissions ls -nd jenkins_home # Change the owner to administrator sudo chown -R 1000:1000 jenkins_home Step 3: Start Jenkins# View docker images # Start Jenkins docker run -d -p 12580:8080 --name=jenkins -v /my_data/jenkins_home/:/var/jenkins_home jenkins/jenkins:lts Step 4: Open the Jenkins webpageThen we need to enter the container and view the password # View the container list sudo docker ps Then enter the container according to the container ID sudo docker exec -it 8c6be63a8fd5 /bin/sh Then get the password cat /var/jenkins_home/secrets/initialAdminPassword Then fill in this password into the above web page. Then an error may be reported: The cloudbees-folder plugin is missing The solution is to go to Index of /packages/jenkins/plugins/cloudbees-folder/latest After downloading, put it in war/WEB-INF/detached-plugins under the jenkins_home folder, and then restart the container. Next, install the recommended plugins Then create an administrator user and complete the Jenkins installation! This is the end of this article about the implementation steps of Docker deployment and installation of Jenkins. For more relevant content about Docker deployment and installation of Jenkins, 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:
|
<<: What are HTML inline elements and block-level elements and their differences
>>: Book page turning effects made with CSS3
Record the problems you solve for others. Problem...
In this post, we’ll use the :placeholder-shown ps...
If you want to transfer files between Windows and...
Table of contents 1. Install html2Canvas 2. Intro...
Using the internal function instr in MySQL can re...
When the DataSource property of a DataGrid control...
Table of contents 1. Filter unique values 2. Shor...
In our recent project, we need to use Google robo...
This article describes the example of MySQL sched...
Table of contents 1. Effect diagram (multiple col...
Adding necessary comments is a good habit that a ...
Preface Recently, many new colleagues have asked ...
First: 4 ways to introduce CSS There are four way...
Preface Tip: The following is the main content of...
Table of contents 1. Function Binding 2. With par...