docker-jenkins
拉取项目
docker pull jenkins/jenkins:lts
启动项目
mkdir -p /usr/local/docker/jenkins_home
chmod 777 /usr/local/docker/jenkins_home
docker run -d -p 10240:8080 -p 10241:50000 -v /usr/local/docker/jenkins_home:/var/jenkins_home -v /etc/localtime:/etc/localtime --name myjenkins jenkins/jenkins:lts
通过:docker logs myjenkins 查看密码或者在本地/usr/local/docker/jenkins_home下/usr/local/docker/jenkins_home/secrets的initialAdminPassword找密码
标签:安装,usr,home,jenkins,docker,local,myjenkins From: https://www.cnblogs.com/q1359720840/p/17570980.html