Please see these pages for more information:
https://docs.docker.com/reference/cli/docker/container/ls/
For the following sections we will use the nginx and ubuntu images as examples to show how to use docker commands to list containers.
Let's run the nginx image:
Let's run the ubuntu image: