docker安装jenkins
1.搜索jenkins
docker search Jenkins (不要选第一个 选择第二个 jenkins/jenkins )
2,拉取镜像
docker pull jenkins/jenkins
3,运行镜像启动容器
docker run -itd -p 8080:8080 --name jenkins jenkins/jenkins
4,进入Jenkins 为了回去密码
docker exec -it jenkins /bin/bash
5,获取密码
cat /var/jenkins_home/secrets/initialAdminPassword