问题描述
重新启动Windows后,我无法连接到在Oracle Virtual Box中运行的docker机器。
当我启动Docker QuickStart终端时,每件事情看起来都很好,它可以提供给我这个消息:
After I restarted my windows i cannot connect to docker machine running in Oracle Virtual Box.When i start Docker QuickStart Terminal every thing looks fine, it's coming up OK and it gives me this message:
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.
当我尝试重新初始化我的环境,我得到:
also when i try to reinitialize my env., i get:
λ 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.
BTW,再生证券也没有帮助。
任何想法?
BTW, Regenerating certs also not helping.Any idea?
谢谢。
推荐答案
做一些研究,我发现以下解决方法可能会解决现在的问题:
After doing some research I found out that following workaround may solve the issue for now:
-
打开网络和共享中心
Open Network And Sharing Center
单击更改适配器设置
查看是否有任何已启用的适配器,如VPN或VM Ware网络适配器。
See if you have any enabled adapters such as VPN or VM Ware network adapters.
尝试禁用它们,并再次尝试连接到您的容器
Try to disable them and try to connect to your container one more time
如果在其他适配器被禁用时不起作用,请重新启动PC - 在我的情况下,这适用于我。
If it didn't work while you have other adapters disabled, Restart your PC - in my case this worked for me.
这篇关于检查TLS连接时出错:检查和/或重新生成证书时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!