1.拉取镜像
https://www.bilibili.com/video/BV12h411Y76j?p=6&spm_id_from=pageDriver
2.目录权限
chown -R 1000 /root/jenkins
3.创建容器+启动容器+挂载目录
docker run -di --name=jenkins -p 8080:8080 -v /root/jenkins/:/var/jenkins_home jenkins/jenkins:lts
4.测试
http://192.168.10.187:8080/
密码在日志
docker logs jenkins
登陆成功
参考视频
https://www.bilibili.com/video/BV12h411Y76j?p=6&spm_id_from=pageDriver