jenkins安装
1:安装 sudo docker pull jenkins/jenkins 2:路劲 /home/fengge/jenkins_home 3:运行 :/var/jenkins_home 运行数据多了这个错误的东东路径 jenkins_home sudo docker run -d --restart=always --name jenkins -p 8081:8080 -v /home/fengge/jenkins_home:/var/jenkins_home jenkins/jenkins //OK sudo docker run -d --restart=always --name jenkins -p 8081:8080 -v /home/fengge/jenkins_home:/var/ jenkins/jenkins:lts 4:异常 touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions? groupadd -g 1000 jenkinsUsers useradd -u 1000 -g 1000 -d /users/jenkins/jenkinsAdmin -m jenkinsAdmin passwd jenkinsAdmin chown -R 1000:1000 /home/jenkins 5:上面处理没有效果 处理如下运行 sudo docker run -d --restart=always --name jenkins -p 8081:8080 -v /home/fengge/jenkins_home:/var/ jenkins/jenkins:lts 6:进入内部 sudo docker exec -it 容器id /bin/bash 7:查看jenkins分配的密码 cat /var/jenkins_home/secrets/initialAdminPassword 测试密码:fengge518-123456@@
jenkins镜像中使用docker
标签:CI,Centos,--,sudo,+.,home,var,jenkins,docker From: https://www.cnblogs.com/Fengge518/p/17541525.html