首页 > 其他 > 详细

Got permission denied while trying to connect to the Docker daemon socket at unix

时间:2019-06-16 23:15:55      阅读:2304      评论:0      收藏:0      [点我收藏+]

拉取Dockerimages时错误信息如下:

[master@localhost ~]$ docker pull redis
Using default tag: latest
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/images/create?fromImage=redis&tag=latest: dial unix /var/run/docker.sock: connect: permission denied

看样子是权限出问题了,查看当前用户的属组是否具有docker

[master@localhost ~]$ groups 
master wheel

将当前用户添加到docker属组中:

usermod -a -G docker 当前用户名

然后退出重新登陆,查看组:

[master@localhost ~]$ groups 
master wheel docker

这样就哦了。

Got permission denied while trying to connect to the Docker daemon socket at unix

原文:https://www.cnblogs.com/linga/p/11036367.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!