1.拉取镜像:
docker pull jenkinsci/blueocean
2.创建容器:
docker create --name jenkins -u root -p 8889:8080 --privileged=true -v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock -v /home/jenkins:/home docker.io/jenkinsci/blueocean
3.启动容器:
docker start jenkins