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

后端 未结 7 1520
爱一瞬间的悲伤
爱一瞬间的悲伤 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:41

    sudo setfacl --modify user::rw /var/run/docker.sock
    

    It doesn't require a restart and is more secure than usermod or chown.

    as @mirekphd pointed out, the user ID is required when the user name only exists inside the container, but not on the host.

提交回复
热议问题