Docker ps: Difference between revisions
Jump to navigation
Jump to search
(→-s) |
(→-s) |
||
Line 30: | Line 30: | ||
Provide size and virtual size information for a container. | Provide size and virtual size information for a container. | ||
====Size==== | |||
The size represents the amount of data, on disk, that is used for [[Docker_Concepts#Difference_Between_Containers_and_Images_-_a_Writable_Layer|the writable layer]] of the container. | The size represents the amount of data, on disk, that is used for [[Docker_Concepts#Difference_Between_Containers_and_Images_-_a_Writable_Layer|the writable layer]] of the container. | ||
====Virtual Size==== | |||
The virtual size represents the amount of data used for the read-only image data used by the container '''plus''' the container's writable layer size. |
Revision as of 05:01, 5 December 2017
External
Internal
Overview
List running containers. The output contains:
- the container ID and name(s)
- the image the container was created from
- the command
- the container's status
- when long ago was created
- what ports it uses
Options
-a, --all
Lists all containers (stopped and running).
-q, --quiet
Only display the numeric container IDs.
-s
Provide size and virtual size information for a container.
Size
The size represents the amount of data, on disk, that is used for the writable layer of the container.
Virtual Size
The virtual size represents the amount of data used for the read-only image data used by the container plus the container's writable layer size.