为什么Docker卷空间不足? [英] Why has Docker volume run out of space?

查看:105
本文介绍了为什么Docker卷空间不足?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Dockerized数据库将不再启动,因为...

Dockerized database will no longer start because...

FATAL:  could not write lock file "postmaster.pid": No space left on device

虽然我坚信某物空间已用完。在尝试从备份还原45Gb数据库之后,首先出现了此问题。在这段时间内,我的 Docker.qcow2 文件膨胀到60Gb。 Hypervisor对该VM文件的大小有一定限制吗?在Mac上使用Docker。

There are hundreds of Gb available on my hard-disk although I do believe something has run out of space. This problem first cropped up after a couple of attempts at restoring a 45Gb database from backup. During that time my Docker.qcow2 file ballooned to 60Gb. Does Hypervisor have some limit on the size of that VM file? Using Docker for Mac.

这似乎是从 docker-compose.yml中删除这些行时出现某种错误的线索

volumes:
  - website_database_volume:/var/lib/postgresql/data

(是的,我理智地检查了自己是否位于文件的右侧,并弄乱了其他属性)

(and yes I sanity checked I was in the right part of the file by messing with other attributes)

docker系统df

TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              21                  16                  4.58 GB             -7.44e+09 B (-162%)
Containers          827                 3                   28.69 MB            28.69 MB (99%)
Local Volumes       5                   5                   57.02 GB            0 B (0%)


推荐答案

事实证明,这是一个已知问题,目前已在Beta中进行了修复: https://github.com/docker/for-mac/issues/371#issuecomment-262826610

It turns out to be a known issue which has a fix currently in beta: https://github.com/docker/for-mac/issues/371#issuecomment-262826610

感谢其中一位hyperkit贡献者将我指向该方向。

Thanks to one of the hyperkit contributors for pointing me in that direction.

这篇关于为什么Docker卷空间不足?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆