How to access /var/run/docker.sock from inside a docker container as a non-root user? (MacOS Host)

后端 未结 3 1672
星月不相逢
星月不相逢 2020-12-09 17:33

I have installed docker on Mac and everything is running fine. I am using a Jenkins docker image and running it. While using Jenkins as a CI server and to build further imag

3条回答
  •  北海茫月
    2020-12-09 18:06

    No, but this works:

    • Add the user (e.g. jenkins) to the staff-group: sudo dseditgroup -o edit -a jenkins -t user staff
    • Allow group to sudo, in sudo visudo add: %staff ALL = (ALL) ALL

提交回复
热议问题