0
默认的注册表终点在Ubuntu 16.04 LTS每当泊坞窗使用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
任何解决方案?
它看起来像你不是在Ubuntu的泊坞组的一部分。通过运行'getent group docker'来检查你是否属于该组的一部分。如果您不属于该组,请通过运行'sudo usermod -a -G docker' –
Serey
'sudo docker login'或者@Serey添加您自己的用户到docker组 –
它正在工作。谢谢@Tarun Lalwani – Chandru