不是办法的办法,关于docker错误

OS X下的docker,会出现下面错误:

FATA[0032] An error occurred trying to connect: Get https://192.168.59.103:2376/v1.16/version: dial tcp 192.168.59.103:2376: i/o timeout

不是办法的办法是:恢复初始状态,这意味着以前下载的images没了,原来的container也没了...


  1.  boot2docker stop
     boot2docker destroy


  1.  boot2docker init
     boot2docker up
     docker version




http://cxwangyi.github.io/notes/2015-01-13-docker-pitfalls.html

Error

docker version command complains

FATA[0032] An error occurred trying to connect: Get https://192.168.59.103:2376/v1.16/version: dial tcp 192.168.59.103:2376: i/o timeout

while docker upgrade shows that the client tne the server are of the same version (which means they should work together).

Diagnosis

The problem is because that I had created a host-only network vboxnet0before in an experiment of building a VM cluster using VirtualBox on my Mac mini, and boot2docker init would also create a boot2docker VM that uses vboxnet0. However, boot2docker VM expects that the local network vboxnet0 has IP prefix 192.168.53.xxx, whereas my vboxnet0 has another IP prefix.

Solution

The solution is simple:

  1. Stop and destory boot2docker VM:

     boot2docker stop
     boot2docker destroy
  2. Delete my vboxnet0 local network from VirtualBox.

  3. Recreate boot2docker VM and start it:

     boot2docker init
     boot2docker up
     docker version

No space left on device

Error

When I run docker build, it complains not enough disk space.

Diagnosis

When above error happends with boot2docker, it means that the boot2docker VM, other than using has not enough disk space.

Solution

Clone the VMDK disk image created by boot2docker init into a VDI image, enlarge it, mount it to VM, and repartition it. More details can be found here.











本文转自 h2appy  51CTO博客,原文链接:http://blog.51cto.com/h2appy/1673302,如需转载请自行联系原作者
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值