【发布时间】:2016-04-11 00:12:03
【问题描述】:
重新启动 Windows 后,我无法连接到在 Oracle Virtual Box 中运行的 docker 机器。 当我启动 Docker QuickStart Terminal 时,一切看起来都很好,一切正常,它给了我这样的信息:
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
但是当我这样做时:
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
default - virtualbox Timeout
和:
λ docker images
An error occurred trying to connect: Get http://localhost:2375/v1.21/images/json: dial tcp 127.0.0.1:2375: ConnectEx tcp: No connection could be made because the target machine actively refused it.
当我尝试重新初始化我的环境时,我得到:
λ docker-machine env default
Error checking TLS connection: Error checking and/or regenerating the certs: There was an error validating certificates for host "192.168.99.100:2376": dial tcp 192.168.99.100:2376: i/o timeout
You can attempt to regenerate them using 'docker-machine regenerate-certs [name]'.
Be advised that this will trigger a Docker daemon restart which will stop running containers.
顺便说一句,重新生成证书也无济于事。 有什么想法吗?
谢谢。
【问题讨论】:
-
我每隔几天就会遇到这个问题。我必须删除默认机器,然后从头开始重新创建所有图像。这是一种皇家的痛苦。因此提供赏金。
-
调试我机器的输出,这可能会有所帮助:github.com/rmcsharry/debug-docker-machine/blob/master/…
标签: docker docker-machine