docker
resource_error
ai_generated
true
守护进程错误响应:写入 /var/lib/docker/overlay2/.../merged: 设备上没有空间
Error response from daemon: write /var/lib/docker/overlay2/.../merged: no space left on device
ID: docker/overlay2-disk-full
85%修复率
87%置信度
1证据数
2023-09-10首次发现
版本兼容性
| 版本 | 状态 | 引入 | 弃用 | 备注 |
|---|---|---|---|---|
| Docker 24.0.6 | active | — | — | — |
| Docker 25.0.0 | active | — | — | — |
| Docker 20.10.24 | active | — | — | — |
根因分析
Docker 存储 overlay2 层的文件系统(通常为 /var/lib/docker)磁盘空间已满。
English
The filesystem where Docker stores overlay2 layers (usually /var/lib/docker) has run out of disk space.
官方文档
https://docs.docker.com/config/pruning/解决方案
-
Free up space: run 'docker system prune -a --volumes' to remove all unused images, containers, and volumes. Then check disk usage with 'df -h /var/lib/docker'.
-
Increase disk space by adding a new storage device and moving Docker's data directory: edit /etc/docker/daemon.json with 'data-root': '/new/path', then restart Docker.
无效尝试
常见但无效的做法:
-
70% 失败
Running 'docker system prune' only removes unused containers and images, but may not free enough space if the volume is too small.
-
95% 失败
Restarting the Docker daemon does not free disk space; it only clears temporary locks.