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
原文地址:https://www.cnblogs.com/cjunn/p/12179620.html
时间: 2024-10-09 06:06:11