After installing Docker, docker-machine env default fails because ca.pem is not found

徘徊边缘 提交于 2020-01-03 01:55:07

问题


Just installed Docker, but docker-machine env default doesn't work:

$ docker-machine env default
open /Users/me/.docker/machine/machines/default/ca.pem: no such file or directory

The path /Users/me/.docker/machine/machines/default exists but there's no ca.pem in it. Just a bunch of other files.


回答1:


You can also try regenerating the certificates for that docker-machine (e.g. default)

docker-machine regenerate-certs default
docker-machine restart default



回答2:


Usually during the creation of a machine the certs are set up. Just create a new machine from scratch like:

docker-machine create --driver virtualbox dev
docker-machine env dev

That should work.




回答3:


If you are connected to a VPN while creating the VM, that may cause networking issues that prevent the CA from being properly shared. Try disconnecting from any VPNs before creating the VM.



来源:https://stackoverflow.com/questions/32240742/after-installing-docker-docker-machine-env-default-fails-because-ca-pem-is-not

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