Fork me on GitHub

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 version

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

posted @ 2015-07-11 11:44  Zong_在路上  阅读(1707)  评论(0编辑  收藏  举报