问题描述
之前我尝试使用 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