command to check status of docker container 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