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

问题:在从 https://c.163.com/hub#/m/repository/?repoId=3093 下载镜像 docker pull hub.c.163.com/library/jenkins:latest后,启动容器时,报错:

[admin@3-29 ~]$ sudo docker run --name myjenkins-slave1 -p 8080:8080 -v /var/lib/jenkins:/var/jenkins_home hub.c.163.com/library/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?

解决办法:修改路径

[admin@3-29 ~]$ sudo docker run --name myjenkins-slave1 -p 8080:8080 -v /var/lib/jenkins:/var 4bb0a1bd398d
Running from: /usr/share/jenkins/jenkins.war
webroot: EnvVars.masterEnvVars.get("JENKINS_HOME")
Jul 14, 2017 9:24:49 AM Main deleteWinstoneTempContents
WARNING: Failed to delete the temporary Winstone file /tmp/winstone/jenkins.war
Jul 14, 2017 9:24:49 AM org.eclipse.jetty.util.log.JavaUtilLog info
INFO: Logging initialized @382ms

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值