touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied Can not write to

Posted eatandsleep

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied Can not write to 相关的知识,希望对你有一定的参考价值。

拉取镜像

运行容器

  • 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 的主要内容,如果未能解决你的问题,请参考以下文章

sencha touch Uncaught TypeError: Cannot read property 'isReady' of undefined sencha-touch-all.js:21

将“var touch:AnyObject?= touches.anyObject()”转换为 Swift 1.2 [重复]

JQuery 获取touchstart,touchmove,touchend 坐标

linux系统中启动MYSQL时出现错误:touch: 无法创建"/var/lock/subsys/mysql": 设备上没有空间

touchstart,touchmove,touchend事件 写法

移动端笔记——jQuery touch事件