企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] ## docker system df 所有镜像,容器,卷的占用情况 ## 语法 ``` docker system df [OPTIONS] options --format 使用Go模板打印漂亮的图像 --verbose , -v 显示有关空间使用情况的详细信息 ``` ## 实例 ### 磁盘占用情况 ``` > docker system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 19 10 14.93GB 12.98GB (86%) Containers 11 3 2.527GB 789.3MB (31%) Local Volumes 3 2 243MB 120.8MB (49%) Build Cache 0 0 0B 0B ``` ### 详细情况 每个 image,container,volumes 使用使用 ``` $ docker system df -v Images space usage: REPOSITORY TAG IMAGE ID CREATED SIZE SHARED SIZE UNIQUE SIZE CONTAINERS my-curl latest b2789dd875bf 6 minutes ago 11 MB 11 MB 5 B 0 my-jq latest ae67841be6d0 6 minutes ago 9.623 MB 8.991 MB 632.1 kB 0 <none> <none> a0971c4015c1 6 minutes ago 11 MB 11 MB 0 B 0 alpine latest 4e38e38c8ce0 9 weeks ago 4.799 MB 0 B 4.799 MB 1 alpine 3.3 47cf20d8c26c 9 weeks ago 4.797 MB 4.797 MB 0 B 1 Containers space usage: CONTAINER ID IMAGE COMMAND LOCAL VOLUMES SIZE CREATED STATUS NAMES 4a7f7eebae0f alpine:latest "sh" 1 0 B 16 minutes ago Exited (0) 5 minutes ago hopeful_yalow f98f9c2aa1ea alpine:3.3 "sh" 1 212 B 16 minutes ago Exited (0) 48 seconds ago anon-vol Local Volumes space usage: NAME LINKS SIZE 07c7bdf3e34ab76d921894c2b834f073721fccfbbcba792aa7648e3a7a664c2e 2 36 B my-named-vol 0 0 B ```