Closed stevepop closed 6 years ago
Any log output with an error?
Hi @jamtur01,
Yes I got the following errors;
docker logs 9ef85f0fc8dc
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?
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?
Can not write to /var/jenkins_home/copy_reference_file.log. Wrong volume permissions?
touch: cannot touch '/var/jenkins_home/copy_reference_file.log': Permission denied
Is the UID of the jenkins user 1000?
The container does not run so not sure how I can check the UID of jenkins user? The image below is the permisisons on the host
You can run the container without the volume and check.
Yes the UID of jenkins user is 1000
HI @jamtur01, were you able to reproduce this issue? Is there an alternative way of getting past this point?
Sorry I haven't had a chance to replicate it. I won't have until the weekend. Do you have a Linux box you could use in the meantime?
Okay, I will try on a Linux box in the meantime, thanks.
Hi,
I am a Mac user and currently following the code on Chapter 5. I have built the Jenkins image, however when I run the container with the following, it returns the container ID and exits. According to the instruction, I created jenkins_home in
/private/var/jenkins_home
. I also granted permission to the folder as follows;sudo chown -R 1000 /private/var/jenkins_home
Then I ran the image as follows;It returns the container ID but when I run
docker ps
, nothing displays. When I randocker ps -a
, I see the following;I suspect strongly that the problem is the volume mapping. When I remove the volumes, the container runs fine.
What could be the problem here please?