尝试连接到https://index.docker.io时网络超时
我刚刚在跟随他们的网页时安装了Docker-
Toolbox
我开始Docker QuickStart Terminal
看下面
## . ## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ 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
,这就是我所看到的
bash-3.2$ docker run hello-worldUnable 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$
怎么了?
回答:
今天早上我遇到了同样的问题,以下内容为我解决了这个问题:
$ docker-machine restart default # Restart the environment$ eval $(docker-machine env default) # Refresh your environment settings
看来这是由于Docker虚拟机进入了一种奇怪的状态。这里有一个开放的github问题
以上是 尝试连接到https://index.docker.io时网络超时 的全部内容, 来源链接: utcz.com/qa/423469.html