网络超时时尝试连接到https://index.docker.io [英] Network timed out while trying to connect to https://index.docker.io
本文介绍了网络超时时尝试连接到https://index.docker.io的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚安装了 Docker-Toolbox ,然后按照网页
I installed Docker-Toolbox just now while following their webpage
我以 Docker QuickStart Terminal
开始, p>
I started with Docker QuickStart Terminal
and see following
## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/
docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com
bash-3.2$
但是,当我尝试执行 docker pull hello-world
,这是我看到的
But when I try to perform docker pull hello-world
, this is what I see
bash-3.2$ docker run hello-world
Unable to find image 'hello-world:latest' locally
Pulling repository docker.io/library/hello-world
Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/hello-world/images. You may want to check your internet connection or if you are behind a proxy.
bash-3.2$
有什么问题?
推荐答案
我今天早上有同样的问题,以下修正案为:
I had the same problem this morning and the following fixed it for me:
$ docker-machine restart default # Restart the environment
$ eval $(docker-machine env default) # Refresh your environment settings
看来,这是由于Docker虚拟机变成了一个奇怪的状态。这里有一个开放的 github问题
It appears that this is due to the Docker virtual machine getting itself into a strange state. There is an open github issue here
这篇关于网络超时时尝试连接到https://index.docker.io的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文