6

命令

$ docker-machine ls

给我

NAME      ACTIVE   DRIVER       STATE     URL   SWARM
default            virtualbox   Timeout

如果我在 Docker Toolbox 中运行 start.sh,我会得到

                    ##         .
              ## ## ##        ==
           ## ## ## ## ##    ===
       /"""""""""""""""""\___/ ===
  ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
       \______ o           __/
         \    \         __/
          \____\_______/

host is not running
docker is configured to use the default machine with IP

这个状态是什么意思?

4

2 回答 2

1

Docker machine gets timeout when we switch between wifi-networks/VPN. If we switch back to the same network where docker container was initiated, we can get back the docker-machine to running state.

If your not sure what network you started your docker-machine, then just restarting your computer must fix the problem.

于 2016-03-25T21:10:41.807 回答
1

要解决此问题,请转到您的 Virtual Box 并完全删除虚拟机。然后启动您的 Docker 快速入门终端。如果虚拟机不存在,它会从头开始创建并连接到它。

我在更改了我的 Virtual Box 主机适配器(更改了 IP)后看到了这一点。

于 2015-11-23T17:47:24.983 回答