PeterMosmans / devsecops-lab

Demo files
GNU General Public License v3.0
17 stars 41 forks source link

Jenkins image volume permission issue #1

Open markusamuel opened 3 years ago

markusamuel commented 3 years ago

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

jvalley19 commented 2 years ago

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

wheredidfranciscogo commented 2 years ago

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!