how to list stopped docker containers code example
Example 1: list stopped containers
docker ps --filter "status=exited"
Example 2: docker list containers
# List curently active containers
$ docker ps
Example 3: docker display stopped containers
#display all containers
docker ps -a