This repository was archived by the owner on Oct 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
components/cli/docs/reference/commandline Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -75,6 +75,22 @@ $ docker ps -a
7575container that exposes TCP ports ` 100, 101, 102 ` displays ` 100-102/tcp ` in
7676the ` PORTS ` column.
7777
78+ ### Show disk usage by container
79+
80+ The ` docker ps -s ` command displays two different on-disk-sizes for each container:
81+
82+ ``` bash
83+ $ docker ps -s
84+ CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES SIZE SIZE
85+ e90b8831a4b8 nginx " /bin/bash -c 'mkdir " 11 weeks ago Up 4 hours my_nginx 35.58 kB (virtual 109.2 MB)
86+ 00c6131c5e30 telegraf:1.5 " /entrypoint.sh" 11 weeks ago Up 11 weeks my_telegraf 0 B (virtual 209.5 MB)
87+ ```
88+ * The "size" information shows the amount of data (on disk) that is used for the _ writable_ layer of each container
89+ * The "virtual size" is the total amount of disk-space used for the read-only _ image_ data used by the container and the writable layer.
90+
91+ For more information, refer to the [ container size on disk] ( https://docs.docker.com/storage/storagedriver/#container-size-on-disk ) section.
92+
93+
7894### Filtering
7995
8096The filtering flag (` -f ` or ` --filter ` ) format is a ` key=value ` pair. If there is more
@@ -431,4 +447,4 @@ a87ecb4f327c com.docker.swarm.node=ubuntu,com.docker.swarm.storage=ssd
43144701946d9d34d8
432448c1d3b0166030 com.docker.swarm.node=debian,com.docker.swarm.cpu=6
43344941d50ecd2f57 com.docker.swarm.node=fedora,com.docker.swarm.cpu=3,com.docker.swarm.storage=ssd
434- ```
450+ ```
You can’t perform that action at this time.
0 commit comments