docker - `docker system prune -a` 实际上是做什么的?
问题描述
运行前我的空白空间docker system prune -a
是 900 MB,运行它给了我65 GB 的可用空间,尽管命令报告它只清理了 14.5 GB
报告是错误的,我在这里遗漏了什么吗?
文档并没有告诉新的东西,如果它只清除 14.5 GB 这将是正常的,这只会给我一个答案,即我以错误的方式做这件事。这里有什么想法吗?
解决方案
这将从运行 docker 的主机中删除以下内容
- all stopped containers
- all networks not used by at least one container
- all dangling images(unused images)
- all build cache
推荐阅读
- c++ - 使用向量指令查找数组的总和
- reactjs - 在包装 Cascader 的 Form.Item 上设置 initialValue 会引发“未捕获的 TypeError:label.join 不是函数”
- javascript - 根据孩子的值查询firebase数据库
- python - 通过 form.py 上传图片
- javascript - 用if语句jquery改变颜色
- git - 使用 Git 工具在一个 Git 存储库下添加多个项目 - 子模块
- c++ - Qt信号多重定义
- python - Python:我可以在 map 函数中使用 dict update 吗?
- docker - 在 Docker Hub 上哪里可以找到官方镜像的 Dockerfile?
- javascript - 如何使用 Vue 为 VSCode 创建扩展