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

相關文章
相關標籤/搜索