Jenkins 管理

安装 Jenkins

docker run -d -p 50000:50000 -p 8008:8080 \
-v /home/jenkins_home:/var/jenkins_home \
-v /etc/localtime:/etc/localtime  \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
--name jenkins \
192.168.1.181:8080/library/jenkins/jenkins:lts

启动 Jenkins

docker start jenkins

停止 Jenkins

docker stop jenkins

重启 Jenkins

docker restart jenkins
posted @ 2021-10-22 16:36  yaomianwei  阅读(2)  评论(0编辑  收藏  举报