mirror of
http://junepve.top:3000/chicrobot/README.git
synced 2026-10-29 23:41:29 +08:00
更新 c15_docker部署jenkins.md
This commit is contained in:
1 parent
fc13226452
commit
07842b9447
1 file changed
+6
-6
@@ -12,13 +12,13 @@ docker network create jenkins
|
|||||||
```
|
```
|
||||||
### 创建容器
|
### 创建容器
|
||||||
```
|
```
|
||||||
docker run --name jenkins --detach \
|
docker run \
|
||||||
--privileged --network jenkins --network-alias docker \
|
--name jenkins \
|
||||||
--env DOCKER_TLS_CERTDIR=/certs \
|
--restart=on-failure \
|
||||||
--volume ~/data/jenkins/jenkins-docker-certs:/certs/client \
|
--detach \
|
||||||
|
--publish 7368:8080 \
|
||||||
--volume ~/data/jenkins/jenkins-data:/var/jenkins_home \
|
--volume ~/data/jenkins/jenkins-data:/var/jenkins_home \
|
||||||
--publish 2376:2376 \
|
jenkins/jenkins:2.546-jdk21
|
||||||
docker:dind --storage-driver overlay2
|
|
||||||
```
|
```
|
||||||
|
|
||||||
官方文档:`https://www.jenkins.io/doc/book/installing/docker/`
|
官方文档:`https://www.jenkins.io/doc/book/installing/docker/`
|
||||||
|
|||||||
Reference in new issue
Block a user