eval “$(docker-machine env default)” leads to Error checking TLS connection

和自甴很熟 提交于 2019-12-08 00:25:33

问题


I've installed Docker on my Mac about a month ago, and I now wanted to use it again. The command eval "$(docker-machine env default)" used to work perfectly before, but I now get an error:

Error checking TLS connection: default is not running. Please start it in order to use the connection settings

I searched around for this error, but I can't really find anything about it. Does anybody know what I should do to solve this? All tips are welcome!


回答1:


Your boot2docker virtual machine must be running inside Virtualbox.

List your Docker machines:

$ docker-machine ls

NAME          ACTIVE   DRIVER       STATE     URL                          SWARM   DOCKER    ERRORS
default       -        virtualbox   Stopped                                        Unknown

Start default machine:

$ docker-machine start default

Starting "default"...
(default) Check network to re-create if needed...
(default) Waiting for an IP...
Machine "default" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.

To recreate your default machine:

$ docker-machine rm default
$ docker-machine create --driver virtualbox default

Then you should be able to setup your env with eval "$(docker-machine env default)".



来源:https://stackoverflow.com/questions/36058492/eval-docker-machine-env-default-leads-to-error-checking-tls-connection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!