通过Docker创建Jenkins
 1version: '3'
 2services:
 3  docker_jenkins:
 4    user: root
 5    restart: always
 6    image: jenkins/jenkins:lts
 7    container_name: jenkins_local
 8    ports:
 9      - 30180:8080
10      - 50000:50000
11    volumes:
12      - $PWD/jenkins_home/:/var/jenkins_home
13      - /var/run/docker.sock:/var/run/docker.sock
14      - /usr/bin/docker:/usr/bin/docker
15      - /usr/local/bin/docker-compose:/usr/local/bin/docker-compose