List only stopped Docker containers

前端 未结 3 1055
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 21:10

Docker gives you a way of listing running containers or all containers including stopped ones.

This can be done by:

$ docker ps # To list running contain         


        
3条回答
  •  [愿得一人]
    2021-01-29 21:36

    docker container list -f "status=exited"
    

    or

    docker container ls -f "status=exited"
    

    or

     docker ps -f "status=exited"
    

提交回复
热议问题