首页 > 解决方案 > `docker system prune -a` 实际上是做什么的?

问题描述

运行前我的空白空间docker system prune -a是 900 MB,运行它给了我65 GB 的可用空间,尽管命令报告它只清理了 14.5 GB

报告是错误的,我在这里遗漏了什么吗?

文档并没有告诉新的东西,如果它只清除 14.5 GB 这将是正常的,这只会给我一个答案,即我以错误的方式做这件事。这里有什么想法吗?

标签: docker

解决方案


这将从运行 docker 的主机中删除以下内容

    - all stopped containers
    - all networks not used by at least one container
    - all dangling images(unused images)
    - all build cache

推荐阅读