jenkins镜像拉取
docker pull jenkins/jenkins
为jenkins镜像分配容器
docker run -d --name jenkins
-p 8080:8080
--restart=always
-e TZ="Asia/Shanghai"
-e JENKINS_OPTS="--prefix=/jenkins"
-v /opt/my_jenkins:/var/jenkins_home
jenkins/jenkins
docker pull jenkins/jenkins
docker run -d --name jenkins
-p 8080:8080
--restart=always
-e TZ="Asia/Shanghai"
-e JENKINS_OPTS="--prefix=/jenkins"
-v /opt/my_jenkins:/var/jenkins_home
jenkins/jenkins