An error occurred trying to connect: Post https://192.168.59.103:2376/v1.19/containers/create

在Windows下安装Boot2Docker,运行docker run hello-world命令,出现以下错误:
An error occurred trying to connect: Post https://192.168.59.103:2376/v1.19/containers/create: x509:
certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.59.103
当出现相似上面的错误时,能够按照以下方法解决:
1. 中止并删除boot2docker虚拟机
boot2docker stop
boot2docker destroy
2. 从新建立boot2docker虚拟机并启动
boot2docker init
boot2docker up
docker versionhtml

参考文章:http://cxwangyi.github.io/notes/2015-01-13-docker-pitfalls.htmlgit

相关文章
相关标签/搜索