docker run -d -p 8080:8080 -p 50000:50000  \
-v /hytd/jenkins:/var/jenkins_home  \
-v /hytd/maven:/hytd/maven  \
-v /hytd/jdk:/hytd/jdk  \
-v /hytd/.m2/repository:/hytd/.m2/repository   \
-v /var/run/docker.sock:/var/run/docker.sock   \
-v $(which docker):/usr/bin/docker  \
--name jenkins --restart always --privileged=true  -u root  \
-e JAVA_OPTS=-Duser.timezone=Asia/Shanghai docker.io/jenkinsci/blueocean
posted on 2021-04-07 09:49  肖建锋  阅读(42)  评论(0编辑  收藏  举报