简体   繁体   中英

AWS Fargate jenkins docker volume mount is not working

I was trying to set up a jenkins docker container in the ECS fargate. But each time the task stops the data will get loss. So, I had attached the jenkins-volume mount option in the container - task definition.

Container Path - /var/jenkins_home

Source Volume - jenkins-volume

But after stating the service, I am getting errors,

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?

I was getting the same error when I was trying to run jenkins on aws ECS-fargate and mounting the volume on EFS. I resolved this issue by changing the user in my Dockerfile to root. USER root

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM