如何从中恢复

时间:2015-01-01 16:05:17

标签: centos docker

在CentOS 6.6上运行Docker 1.3.2。

如何从此错误状态中恢复?

重启Docker没有帮助

docker run -p 8888:6543 zopyx/pp.server
Unable to find image 'zopyx/pp.server' locally
Pulling repository zopyx/pp.server
e64a47ccffa6: Error pulling image (latest) from zopyx/pp.server, Driver devicemapper failed to create image rootfs 39339148edaf62e7572fc761b22a06a1b6320117360de99169150300f798e68f: device 39339148edaf62e7572fc761b22a06a1b6320117360de99169150300f798e68f already exists 0117360de99169150300f798e68f already exists
fe95bf7d5f50: Download complete
9a4594fe74ea: Download complete
8c4b1edcceea: Download complete
ed5a78b7b42b: Download complete
f05fd44c10df: Download complete
4a52e4389d94: Download complete
6a6f3cabfcc0: Download complete
4c7a3dc214a2: Download complete
c444afe7e4a7: Download complete
071ab5784dd2: Download complete
6f723dfb9672: Download complete
eef4e9a4e524: Download complete
cab477dc84b8: Download complete
435c43b2ac8c: Download complete
3759d2f133f4: Download complete
bf8ebe5cdfab: Download complete
503797f1ffc0: Download complete
165b1bc94202: Download complete
39339148edaf: Error downloading dependent layers
2015/01/01 16:15:28 Error pulling image (latest) from zopyx/pp.server, Driver devicemapper failed to create image rootfs 39339148edaf62e7572fc761b22a06a1b6320117360de99169150300f798e68f: device 39339148edaf62e7572fc761b22a06a1b6320117360de99169150300f798e68f already exists

2 个答案:

答案 0 :(得分:2)

我遇到了遇到磁盘空间问题的docker构建问题。似乎留下了各种垃圾。重启没有修复。大锤修复只是删除/ var / lib / docker下的所有东西(保存你需要的任何东西)。下一次构建运行会恢复所有内容。

答案 1 :(得分:1)

其他人也看到了这个问题See Issue 3721

两个常见原因是磁盘空间不足和网络速度慢。缓慢的网络原因在一个版本的docker中标记为已修复,早于您列出的版本,因此我怀疑它是一个磁盘空间问题。

如果不是磁盘空间问题,您可以尝试从本地驱动器中删除该图像,然后再试一次:

rm -rf /var/lib/docker/aufs/diff/<id>
rm -rf /var/lib/docker/graph/<id>

其中id为39339148edaf62e7572fc761b22a06a1b6320117360de99169150300f798e68f