码迷,mamicode.com
首页 > 其他好文 > 详细

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? docker 安装 jenkins

时间:2020-02-15 09:54:54      阅读:220      评论:0      收藏:0      [点我收藏+]

标签:home   mis   name   with   rmi   admin   报错   hub   com   

拉取镜像

运行容器

  • docker run -v $home/jenkins:/var/jenkins_home --name jenkins8888 -p 8888:8080 -p 50000:50000 jenkins
  • 报错

    • 原因 :官方文档 Ensure that /your/home is accessible by the jenkins user in container (jenkins user - uid 1000) or use -u some_other_user parameter with docker run.
    • 解决方案:

      • groupadd -g 1000 jenkinsUsers
      • useradd -u 1000 -g 1000 -d /users/jenkins/jenkinsAdmin -m jenkinsAdmin
      • passwd jenkinsAdmin
      • chown -R 1000:1000 /home/jenkins

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? docker 安装 jenkins

标签:home   mis   name   with   rmi   admin   报错   hub   com   

原文地址:https://www.cnblogs.com/eatandsleep/p/12310466.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!