参考文章:https://www.cnblogs.com/netflix/p/15131498.html
在Jenkins容器里运行docker
需要加上参数
-v /var/run/docker.sock:/var/run/docker.sock
运行jenkins的命令
docker run --name my_jenkins -p 8080:8080 -p 50000:50000 -d --env JAVA_OPTS=-Duser.timezone=Asia/Shanghai -v /usr/local/my_jenkins/:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock --privileged=true jenkins/jenkins
标签:容器,run,sock,var,jenkins,Docker,docker,运行
From: https://www.cnblogs.com/bangbangzoutianya/p/16734000.html