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"

This post was published by Daniyal Hamid. Daniyal currently works as the Head of Engineering in Germany and has 20+ years of experience in software engineering, design and marketing. Please show your love and support by sharing this post.