To list running containers.

docker ps

To list all containers, no matter running or stopped.

docker ps --all