fix "virtual" explanation for "docker ps -s" (#5273)

This commit is contained in:
Xinfeng Liu 2017-11-11 01:24:51 +08:00 committed by Misty Stanley-Jones
parent 6b21538aa3
commit 7ec947b877
1 changed files with 5 additions and 3 deletions

View File

@ -81,7 +81,8 @@ command. Two different columns relate to size.
each container
- `virtual size`: the amount of data used for the read-only image data
used by the container. Multiple containers may share some or all read-only
used by the container plus the container's writable layer `size`.
Multiple containers may share some or all read-only
image data. Two containers started from the same image share 100% of the
read-only data, while two containers with different images which have layers
in common share those common layers. Therefore, you can't just total the
@ -90,8 +91,9 @@ command. Two different columns relate to size.
The total disk space used by all of the running containers on disk is some
combination of each container's `size` and the `virtual size` values. If
multiple containers have exactly the same `virtual size`, they are likely
started from the same exact image.
multiple containers started from the same exact image, the total size on disk for
these containers would be SUM (`size` of containers) plus one container's
(`virtual size`- `size`).
This also does not count the following additional ways a container can take up
disk space: