docker ps

List containers

Options

NameDescription
-a, --allShow all containers (default shows just running)
-f, --filter <filter>Filter output based on conditions provided
--format <string>Pretty-print containers using a Go template
-n, --last <int>Show n last created containers (includes all states) (default -1)
-l, --latestShow the latest created container (includes all states)
--no-truncDon't truncate output
-q, --quietOnly display container IDs
-s, --sizeDisplay total file sizes