linux就该这么学pdf免费下载
当以普通用户身份去使用docker images时,出现以下错误:
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.26/images/json: dial unix /var/run/docker.sock: connect: permission denied
sudo groupadd docker
将用户加入该 group 内。然后退出并重新登录就生效啦。
sudo gpasswd -a ${USER} docker
重启
service docker restart
ok
转载请注明:谷谷点程序 » docker 报错ot permission denied while trying 解决办法