docker ps

Lists running containers; add -a to include stopped ones.

In more detail

The columns show the container ID, image, command, age, status (such as Up 2 minutes or Exited (0)), published ports and name. --filter narrows the list, for example --filter name=taskapi, and --format picks columns with a Go template.

Example

docker ps -a --filter name=lifecycle-demo

Related terms

Taught in

References