Bootstrap

docker安装自动化打包部署工具Jenkins

## 拉起docker镜像
docker pull jenkins/jenkins:latest-jdk8
## 创建目录
mkdir /data/jenkins_home
## 修改目录权限
chown -R 1000:1000 /data/jenkins_home
## 运行jenkins
docker run -d --name jenkins -p 11012:8080 -v /data/jenkins_home:/var/jenkins_home jenkins/jenkins:latest-jdk8
## 进入容器
docker exec -it jenkins bash 
## 查看初始密码(复制这一段密码然后到浏览器打开 http://localhost:11012 粘贴)
cat /var/jenkins_home/secrets/initialAdminPassword 
;