How to List All Stopped Docker Containers?

To list only the stopped Docker containers, you can use the --filter (or -f shorthand) option with status=exited on any of the following commands:

  • docker ps;
  • docker container ls;
  • docker container list.

For example:

docker ps -f "status=exited"
docker container ls -f "status=exited"
docker container list -f "status=exited"

Hope you found this post useful. It was published . Please show your love and support by sharing this post.