FahamLah

Commands

docker ps

docker ps [-a] [-q] [--filter key=value]

Risk: Safe

What it does

Lists running containers.

When to use it

To see what is running and its state.

Example

$ docker ps -a

Show all containers, stopped ones too.

$ docker ps -q

Only the ids.

$ docker ps --filter status=exited

Only stopped containers.