web:
image: 'jenkinsci/blueocean:1.22.0'
restart: always
container_name: jenkins
ports:
- '8090:8080'
- '50000:50000'
volumes:
- '/data/jenkins/data:/var/jenkins_home'
- '/var/run/docker.sock:/var/run/docker.sock '
2、添加privileged参数后脚本如下:
web:
image: 'jenkinsci/blueocean:1.22.0'
privileged: true
user: root
restart: always
container_name: jenkins
hostname: '10.220.96.202'
ports:
- '8090:8080'
- '50000:50000'
volumes:
- '/data/jenkins/data:/var/jenkins_home'
- '/var/run/docker.sock:/var/run/docker.sock '
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)