get only exited docker containers code example Example: list stopped containers docker ps --filter "status=exited"