小编典典

尝试连接到 https://index.docker.io 时网络超时

all

我刚刚在关注他们的网页时安装了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-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$

怎么了?


阅读 220

收藏
2022-06-29

共1个答案

小编典典

今天早上我遇到了同样的问题,以下为我解决了这个问题:

$ docker-machine restart default      # Restart the environment
$ eval $(docker-machine env default)  # Refresh your environment settings

这似乎是由于 Docker 虚拟机使自己进入了一个奇怪的状态。这里有一个开放的github
问题

2022-06-29