1.安装镜像
docker pull jenkins/jenkins
2.创建容器
docker run -id -u root --name myjenkins -p 8085:8080 -p 50000:50000 jenkins/jenkins
3.进入容器
docker exec -it myjenkins /bin/bash
4.获取密码
cat /var/jenkins_home/secrets/initialAdminPassword
38e2e964297a4894a0b51fbc737585d1
- 访问