微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法在 Windows 10 中使用命令提示符登录到 docker

如何解决无法在 Windows 10 中使用命令提示符登录到 docker

之前我尝试使用 docker 安装飞溅,但它显示了问题

C:\Users\krishan>docker pull scrapinghub/splash
Using default tag: latest
Error response from daemon: Head https://registry-1.docker.io/v2/scrapinghub/splash/manifests/latest: unauthorized: incorrect username or password

所以我尝试了这个,但仍然面临问题


C:\Users\krishan>docker login
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: krishaner
Password:
Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

请帮忙!!

解决方法

我在使用 Docker Toolbox 的 Windows 10 Home 中遇到了同样的错误。将我的 DNS 更改为 Google 的 8.8.8.8(次要到 8.8.4.4)也对我有用(这里是 @aasaanhai)。有关如何操作的详细说明,请参见此处(参见第 II 部分)。

参考:https://github.com/docker/for-win/issues/611

解决了我的问题,因为我已经设置了我的 docker DNS 服务器 8.8.8.8

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。