一,docker-compose.yml
version: '3'
services:
jenkins:
image: jenkinsci/blueocean
container_name: jenkins-blueocean
restart: unless-stopped
network_mode: host
ports:
- 8088:8080
- 50000:50000
volumes: #挂载的目录
- /var/jenkins-data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
二,docker-compose up 启动镜像获取密码
......
jenkins-blueocean | Jenkins initial setup is required. An admin user has been created and a password generated.
jenkins-blueocean | Please use the following password to proceed to installation:
jenkins-blueocean |
jenkins-blueocean | 0c66e31048584e94b002b3d76d1ba8ca
jenkins-blueocean |
jenkins-blueocean | This may also be found at: /var/jenkins_home/secrets/initialAdminPassword
jenkins-blueocean |
jenkins-blueocean | *************************************************************
jenkins-blueocean | *************************************************************
jenkins-blueocean | *************************************************************
jenkins-blueocean |
jenkins-blueocean | 2022-07-06 13:44:03.586+0000 [id=29] INFO jenkins.InitReactorRunner$1#onAttained: Completed initialization
jenkins-blueocean | 2022-07-06 13:44:03.741+0000 [id=22] INFO hudson.lifecycle.Lifecycle#onReady: Jenkins is fully up and running
三,jinkins相关页面
image.png image.png image.png image.png
网友评论