List running and stopped containers.
docker ps -aList running and stopped containers.
docker ps -aList running and stopped containers.
docker ps -a| Option / clause | Description |
|---|---|
-a, --all | Show all containers, including stopped containers. |
-q, --quiet | Print container IDs only. |
--filter <key=value> | Filter containers, for example by status or name. |
--format <template> | Format the output using a Go template. |
-s, --size | Display container writable-layer sizes. |
Review a command and its target before running it. Commands that alter files, services, accounts, disks, permissions or databases may be difficult to reverse. Test in a safe environment and keep backups.