How to fix “dial unix /var/run/docker.sock: connect: permission denied” when group permissions seem correct?

后端 未结 7 1380
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-30 10:01

I\'m suddenly having issues after an update of Ubuntu 18.04: previously I\'ve used docker without issue on the system, but suddenly I cannot. As far as I can tell, the permissio

相关标签:
7条回答
  • 2021-01-30 10:59

    The way to fix it is to run:

    • 1 - $ sudo setfacl -m "g:docker:rw" /var/run/docker.sock
    • 2 - $sudo addgroup --system docker
    • 3 - $sudo adduser $USER docker
    • 4 - $newgrp docker

    that works for me :)

    0 讨论(0)
提交回复
热议问题