Docker搭建Jenkins
# 💻 Docker 配置
# docker run jenkins
# Step 1: Create a network (if it does not exist)
$ docker network create jenkins-network
# Step 2. Create the Jenkins container with host volumes
$ docker run -d -p 80:8080 --name jenkins \
--user root \
--env JENKINS_USERNAME=sleepy \
--env JENKINS_PASSWORD=ZXas12 \
--network jenkins-network \
--volume $PWD/0-data/1-dockerContainer/jenkins-persistence:/bitnami/jenkins \
bitnami/jenkins:latest
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
上次更新: 2022/03/08, 06:03:00