Pull the image root@EricZhou-MateBookProX: docker pull jenkins/jenkins:lts lts: Pulling from jenkins/jenkins 3192219afd04: Pull complete 17c160265e75: Pull complete cc4fe40d0e61: Pull complete 9d647f502a07: Extracting [====================================> ] 35.65MB/50.07MB d108b8c498aa: Download complete 1bfe918b8aa5: Download complete dafa1a7c0751: Downloading [==================> ] 36.8MB/104.2MB 9221a8ef4852: Downloading [===> ] 3.116MB/44.27MB a79e75dd432b: Download complete efbc20726efc: Downloading Create a data volume directory makdir /home/jenkins docker run container docker run -d --name jenkins -p 7000:80 -v /home/jenkins:/home/jenkins jenkins/jenkins:lts Check the jenkins container and the status value is UP root@EricZhou-MateBookProX: docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 29c2a14856be jenkins/jenkins:lts "/sbin/tini -- /usr/…" 22 seconds ago Up 21 seconds 8080/tcp, 50000/tcp, 0.0.0.0:7000->80/tcp jenkins Enter localhost:7000 in the browser and access the following page Enter the container, get the password, and enter it # Enter the container root@EricZhou-MateBookProX: docker exec -it jenkins bash # Get the password jenkins@2fdf047094f6:/$ cat /var/jenkins_home/secrets/initialAdminPassword 1c45086eac3043feade3e816a306cf5b Install the recommended plugins, wait for the installation process, and the service is set up The above is the details of the example of building a Jenkins service with Docker. For more information about building a Jenkins service with Docker, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: How to write high-quality JavaScript code
>>: MySQL 5.7.31 64-bit free installation version tutorial diagram
Preface: rm under Linux system is irreversible. T...
Table of contents Preface: System Requirements: I...
It can be referenced through CDN (Content Delivery...
Quickly install the tensorflow environment in Doc...
If we introduce the nesting rules of basic HTML w...
1. Create a test table CREATE TABLE `mysql_genara...
background Recently, a leader wanted us to build ...
Introduction to AOP The main function of AOP (Asp...
To summarize: Readonly is only valid for input (te...
Because the data binding mechanism of Vue and oth...
Swap memory mainly means that when the physical m...
MySQL 5.7 MySQL command line client using command...
Preface The solution to the problem of not being ...
Copy code The code is as follows: <pre> <...
This article records the installation and configu...