Jenkins wrong volume permissions

后端 未结 8 1079
迷失自我
迷失自我 2020-12-16 14:39

I have a virtual machine hosting Oracle Linux where I\'ve installed Docker and created containers using a docker-compose file. I placed the jenkins volume under a shared fol

8条回答
  •  执念已碎
    2020-12-16 15:15

    Had a similar issue on MacOS, I had installed Jenkins using helm over a Minikube/Kubenetes after many intents I fixed it adding runAsUser: 0 (as root) in the values.yaml I use to deploy jenkins.

    master:
      usePodSecurityContext: true
      runAsUser: 0
      fsGroup: 0
    

    Just be careful because that means that you will run all your commands as root.

提交回复
热议问题