一、下载镜像
docker pull gitlab
二、运行Jenkins容器
docker run --name myjenkins -d -p 8580:8080 -p 50000:50000 -v /var/jenkins_home jenkins
三、Jenkins访问
1.查看jenkins启动日志,来获取初始密码
docker logs
************************************************************* ************************************************************* ************************************************************* Jenkins initial setup is required. An admin user has been created and a password generated. Please use the following password to proceed to installation: 5973ab4bb61d48d1afa6930059d815b0 This may also be found at: /var/jenkins_home/secrets/initialAdminPassword ************************************************************* ************************************************************* *************************************************************
2.访问地址
http://{ip地址}:8580
原文:https://www.cnblogs.com/756623607-zhang/p/10885874.html