ubuntu – 尝试连接到Docker守护程序套接字时权限被拒绝
发布时间:2020-10-19 16:30:20 所属栏目:Ubuntu 来源:互联网
导读:在Ubuntu 16.04 LTS上,每当尝试使用docker login命令时,将显示以下交战消息: docker loginWarning: failed to get default registry endpoint from daemon (Got permission denied while trying to connect to the Docker daemon socket
在Ubuntu 16.04 LTS上,每当尝试使用docker login命令时,将显示以下交战消息: docker login Warning: failed to get default registry endpoint from daemon (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.30/info: dial unix /var/run/docker.sock: connect: permission denied). Using system default: https://index.docker.io/v1/ Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID,head over to https://hub.docker.com to create one. Username: csomethingr Password: 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.30/auth: dial unix /var/run/docker.sock: connect: permission denied 有解决方案吗 使用sudo docker登录或者@Serey提到将您的用户添加到docker组 usermod -aG docker $USER 从你的会话中断开! (编辑:岳阳站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- Ubuntu下QT的安装详细教程
- ubuntu14.04 nginx报upstream timed out 问题原因,解决办法
- Ubuntu14.04LTS firefox无法使用问题解决
- 在Ubuntu 18.04 LTS中安装Jenkins失败(无法启动LSB:启动时
- 在EC2 ubuntu实例中无法访问SSD驱动器
- Ubuntu系统基本安装配置
- ubuntu16.04下安装TensorFlow(GPU加速)----详细图文教程
- Ubuntu Linux git gc说错误:无法运行重新包装
- 在Ubuntu 10.04上设置工作D2.x工具链(使用gtkd)
- Ubuntu 下安装Source Insight