BY default, the docker ps command displays only running containers. To view all containers, you can use the -a (or --all) flag as follows:
$ docker ps -a
You can enroll in this Docker Training Online Course by Intellipaat to learn Docker.
Also, you can watch this Docker commands tutorial: