This commit is contained in:
wenyongda 2025-11-25 10:28:47 +08:00
parent edf950b423
commit 88a4910def

View File

@ -747,6 +747,15 @@ Build Cache 12 0 0B 0B
执行 **docker system prune -a** 命令之后Docker 占用的磁盘空间减少了很多
```shell
du -sh /var/lib/docker/containers/* | sort -rh | head -5
cd /var/lib/docker/containers/eb52fa7d62ce52ab7a6153636a0ec89c7c8dce6f1a94dc86b2fbf0702368e82
truncate -s 0 *-json.log
```
## 手动清理 Docker 镜像/容器/数据卷
对于旧版的 Docker(版本 1.13 之前),是没有 docker system 命令的,因此需要进行手动清理。这里给出几个常用的命令