天天看點

不是辦法的辦法,關于docker錯誤

OS X下的docker,會出現下面錯誤:

不是辦法的辦法是:恢複初始狀态,這意味着以前下載下傳的images沒了,原來的container也沒了...

<a href="http://cxwangyi.github.io/notes/2015-01-13-docker-pitfalls.html" target="_blank">http://cxwangyi.github.io/notes/2015-01-13-docker-pitfalls.html</a>

<code>docker version</code> command complains

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

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

The solution is simple:

Stop and destory boot2docker VM:

Delete my <code>vboxnet0</code> local network from VirtualBox.

Recreate boot2docker VM and start it:

When I run <code>docker build</code>, it complains not enough disk space.

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

本文轉自 h2appy  51CTO部落格,原文連結:http://blog.51cto.com/h2appy/1673302,如需轉載請自行聯系原作者