docker container ls print containers in the last 2 hours code example
Example 1: list stopped containers
docker ps --filter "status=exited"
Example 2: docker list containers
# List curently active containers
$ docker ps
docker ps --filter "status=exited"
# List curently active containers
$ docker ps