Docker permission denied

it2022-05-05  171

Issue: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http:///var/run/docker.sock/v1.35/containers/json: dial unix /var/run/docker.sock: connect: permission denied

Solutions:

The errors messages tell you that your current user can't access the docker engine, since you lack of the permission to access the unix socket to communicate with the engine.

For temp solution: you can "sudo the command" to get the permission as root.

It's recommended to fix the issue by adding the current user to the "docker" group. then completely log out and log back in.

   sudo usermod  -a -G docker $USER

 

转自:https://techoverflow.net/2017/03/01/solving-docker-permission-denied-while-trying-to-connect-to-the-docker-daemon-socket/

转载于:https://www.cnblogs.com/frankb/p/9516066.html

相关资源:DirectX修复工具V4.0增强版

最新回复(0)