不是办法的办法,关于docker错误
2015-07-11 22:34
591 查看
OS X下的docker,会出现下面错误:
http://cxwangyi.github.io/notes/2015-01-13-docker-pitfalls.html
Delete my
Recreate boot2docker VM and start it:
本文出自 “GONE WITH THE WIND” 博客,请务必保留此出处http://h2appy.blog.51cto.com/609721/1673302
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也没了...
boot2docker stop boot2docker destroy
boot2docker init boot2docker up docker version
http://cxwangyi.github.io/notes/2015-01-13-docker-pitfalls.html
Error
docker versioncommand 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 timeoutwhile
docker upgradeshows 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 networkvboxnet0before in an experiment of building a VM cluster using VirtualBox on my Mac mini, and
boot2docker initwould also create a boot2docker VM that uses
vboxnet0. However, boot2docker VM expects that the local network
vboxnet0has IP prefix 192.168.53.xxx, whereas my
vboxnet0has another IP prefix.
Solution
The solution is simple:Stop and destory boot2docker VM:boot2docker stop boot2docker destroy
Delete my
vboxnet0local network from VirtualBox.
Recreate boot2docker VM and start it:
boot2docker init boot2docker up docker version
No space left on device
Error
When I rundocker 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 byboot2docker initinto a VDI image, enlarge it, mount it to VM, and repartition it. More details can be found here.
本文出自 “GONE WITH THE WIND” 博客,请务必保留此出处http://h2appy.blog.51cto.com/609721/1673302
相关文章推荐
- docker之数据卷
- docker之高级网络配置
- docker之基础实例
- docker之基础命令
- docker之基础概念
- Docker-2.容器有关
- Docker-1.相关知识+安装+镜像相关操作
- Docker系列(三)---仓库
- Docker系列(二)---容器
- Docker系列(一)---镜像
- docker命令
- Docker 持续集成初次体验
- 玩转Docker Ceph集群及对象存储
- Docker在容器中使用MySQL
- Docker自动部署Apache Tomcat
- Docker 从零开始制作基础镜像[centos]
- 借助docker技术提高研发效率
- Docker -- 命令总结
- 【转】[容器-docker]Ubuntu 系列安装 Docker
- Docker dockerfile创建Eclipse镜像初试