问题:在从 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