windows docker no space left on device

问题描述

创建容器时,提示no space left on device

问题出现的环境背景及自己尝试过哪些方法

操作系统:windows
docker 容器配置:

clipboard.png

尝试过的方式:
https://blog.csdn.net/QQ40147...
无法得到解决,只是清理了Containers的空间,Local Volumes空间还是不足。
docker system df
docker system prune

https://stackoverflow.com/que...
I had the same problem on Windows. One of this two settings should solve this problem:
Increase Memory that Docker is using. If is it 2GB, add more
Increase "Disk image max size" - initially is 60, move it to 80 GB
This should be enough, but depends on complexity of what you are building. In some cases increase of Swap would be needed. The initial Swap of Docker is 1024 MB
Thanks
根据以上的解决思路,不只是增加磁盘空间,也可能是内存不够,两者都增加。

相关代码

// 请把代码文本粘贴到下方(请勿用图片代替代码)

clipboard.png

你期待的结果是什么?实际看到的错误信息又是什么?

请问应该如何增加windows docker的空间大小?

阅读 7.4k
1 个回答
✓ 已被采纳新手上路,请多包涵

https://stackoverflow.com/que...
I had the same problem on Windows. One of this two settings should solve this problem:
Increase Memory that Docker is using. If is it 2GB, add more
Increase "Disk image max size" - initially is 60, move it to 80 GB
This should be enough, but depends on complexity of what you are building. In some cases increase of Swap would be needed. The initial Swap of Docker is 1024 MB

使用了后一种方式解决了,应该是内存不够导致的。

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进