简体   繁体   English

Docker和WSL错误:未经授权

[英]Docker and WSL error: UNAUTHORIZED

Recently started to use Docker in Windows because that's the enviroument where I work. 最近开始在Windows中使用Docker,因为这就是我工作的环境。 I don't have any problem connecting WSL with Windows Docker an using it for first instance. 我将WSL与Windows Docker连接起来并没有任何问题,并且可以将其用于一审。

After reboot my laptop the problems cames to me. 重新启动我的笔记本电脑后,问题来了。 When I'm trying to create an image I get the next error: 当我尝试创建图像时,出现下一个错误:

docker: 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).

Is so weird beacause if uninstall windows docker and reinstall it, everything works but if reboot or shut down my laptop, the problem comes again. 太奇怪了,因为如果卸载Windows docker并重新安装它,一切正常,但是如果重新启动或关闭我的笔记本电脑,问题再次出现。

It seems like DNS resolve issues about Docker registry. DNS似乎解决了有关Docker注册表的问题。

Sometimes DNS on DHCP information or your network settings makes this trouble on windows. 有时,DHCP信息上的DNS或您的网络设置会在Windows上造成此问题。

Try to change DNS options from Automatic to Fixed GoogleDNS(8.8.8.8) on Docker for Windows settings. 尝试在Windows版Docker GoogleDNS(8.8.8.8) DNS选项从Automatic更改为Fixed GoogleDNS(8.8.8.8)

Please refer this screenshot. 请参考此屏幕截图。 Fixed DNS Settings on Docker for windows 在Windows的Docker上修复了DNS设置 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM