当前位置:网站首页>Deploy Jenkins using containers
Deploy Jenkins using containers
2022-07-29 04:18:00 【Eightthousand streams.】
1. Write a docker-compose.yml, as follows :
version: "3.9"
services:
jenkins:
container_name: jenkins
image: jenkins/jenkins:lts
user: root
ports:
- 8888:8080
- 50001:50000
restart: "always"
volumes:
- ./jenkins_home:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- /usr/bin/docker:/usr/bin/docker
analysis :
container_name: jenkinsThe name of the container is :jenkinsimage: jenkins/jenkins:ltsUse Mirror as jenkins/jenkins:lts Stable versionportsPort mapping , Such as 8888:8080 Will host the 8888 The port maps to the container 8080 port , Access the host's 8888 port , It can be mapped into the container 8080volumes: Hang on volume- /jenkins_home:/var/jenkins_home Put... In the container /var/jenkins_home The directory is mapped to the host docker-compose.yml Under the document jenkins_home Catalog
- /var/run/docker.sock:/var/run/docker.sock The container can share the host docker
- /usr/bin/docker:/usr/bin/docker The container can share the host docker
2. Use docker-compose.yml start-up jenkins Containers
docker-compose up -d start-up jenkins Containers ,-d Indicates background start
3. visit jenkins Address :127.0.0.1:8888

4. Get the first login password
- /jenkins_home:/var/jenkins_home Put... In the container /var/jenkins_home The directory is mapped to the host docker-compose.yml Under the document jenkins_home Catalog
- So we can start from the local jenkins_home Get the initial password from the directory

- Obtain the password as follows :

5. Don't use the recommended plug-ins to install , Because it takes a long time to install the recommended plug-ins , Here we choose plug-ins to install

6. Select none , Don't install plug-ins

7. Create an administrator



8. Installation successful , Get into jenkins home page

边栏推荐
- Introduction and examples of parameters in Jenkins parametric construction
- MPU6050
- Svg -- loading animation
- Sequence list and linked list
- [kvm] install KVM
- Fu Yingna: Yuan universe is the new generation of Internet!
- Some problems about pointers
- MPU6050
- "Weilai Cup" 2022 Niuke summer multi school training camp 2H
- Incubator course design (April 12, 2021)
猜你喜欢

Not for 60 days, magical dictionary

不会就坚持69天吧 合并区间

Don't insist on 66 days. Weight generates random numbers

开课!看smardaten如何分解复杂业务场景

Two forms of softmax cross entropy + numpy implementation

不会就坚持60天吧 神奇的字典

rman不标记过期备份
![[Openstack] keystone,nova](/img/de/70b654a29a813c8fe828c4018bd4e7.png)
[Openstack] keystone,nova

UnicodeDecodeError: ‘ascii‘ codec can‘t decode byte 0x90 in position 614: ordinal not in range(128)

Some problems about pointers
随机推荐
不会就坚持71天吧 链表排序
It won't last for 65 days. It only appears once
伏英娜:元宇宙就是新一代互联网!
Differences and principles of bio, NiO and AIO
Incubator course design (April 12, 2021)
数据库SQL语句实现数据分解的函数查询
异常处理:pyemd或PyEMD找不到
Installation and use of stm32cubemx (5.3.0)
不会就坚持66天吧 权重生成随机数
“蔚来杯“2022牛客暑期多校训练营1 J Serval and Essay(启发式合并)
pat A1041 Be Unique
Realize the effect of univariate quadratic equation through JS. Enter the coefficients of a, B and C to calculate the values of X1 and x2
The structure pointer must be initialized, and the pointer must also be initialized
%s. %c, character constant, string constant, const char*, pointer array, string array summary
[kvm] install KVM
Don't the JDBC SQL connector of the big guys Flink now support all databases, such as vertica?
Pat a1069/b1019 the black hole of numbers
Openfeign asynchronous call problem
C语言:结构体简单语法总结
Common components of solder pad (2021.4.6)