人间忽晚,山|

_戈多

园龄:6年9个月粉丝:9关注:7

2018-10-30 12:58阅读: 5301评论: 3推荐: 1

touch: cannot touch ‘/var/jenkins_home/copy_reference_file.log’: Permission denied

docker 运行后, 执行docker logs -f myjenkins时报错:

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?


需要修改下目录权限, 因为当映射本地数据卷时,/home/docker/jenkins目录的拥有者为root用户,而容器中jenkins user的uid为1000
执行如下命令即可:

chown -R 1000:1000 /home/docker/jenkins


转载:
https://segmentfault.com/a/1190000008618462

本文作者:_戈多

本文链接:https://www.cnblogs.com/godots/p/9876226.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   _戈多  阅读(5301)  评论(3编辑  收藏  举报
评论
收藏
关注
推荐
深色
回顶
收起
点击右上角即可分享
微信分享提示