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
Preface The following are the ways to implement L...
Using Navicat directly to connect via IP will rep...
Table of contents 1. What is 2. Use Numeric Enume...
In SQL, GROUP BY is used to group data in the res...
The purpose of using cache is to reduce the press...
Table of contents 1. Common mistakes made by begi...
What is HTTP? When we want to browse a website, w...
Prerequisites Compose is a tool for orchestrating...
This article uses examples to describe the add, d...
Table of contents 1. Keywords 2. Deconstruction 3...
WeChat applet: Simple calculator, for your refere...
This article uses an example to illustrate the ex...
width: auto The child element (including content+...
Use apk add ansible to add the ansible service to...
Table of contents 1. Get request: 2. Post request...