devsecops-lab icon indicating copy to clipboard operation
devsecops-lab copied to clipboard

Jenkins image volume permission issue

Open markusamuel opened this issue 4 years ago • 2 comments

Hi Peter, After firing up docker compose, the jenkins container is showing this error:

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?

System info:

Windows 10 pro Intel core i7-8650U CPU @1.90 GHz Docker 20.10.2 Docker compose 1.27.4

markusamuel avatar Mar 15 '21 01:03 markusamuel

Did you get past this? I am facing the same issue

jvalley19 avatar Nov 10 '21 21:11 jvalley19

Hi 👋🏻 @markusamuel @jvalley19 I fixed this by looking into Docker/Preferences/Resources/File Sharing There you'll see the directories that can be bind mounted into Docker containers, choose one of the present ones and update your docker-compose.yml like /var/Folders/jenkins_home/

Screen Shot 2022-02-19 at 9 15 00 pm

Hope that helps to whoever read this!

wheredidfranciscogo avatar Feb 19 '22 10:02 wheredidfranciscogo