Remove all stopped containers: “docker rm” requires at least 1 argument

前端 未结 5 1854
栀梦
栀梦 2021-02-13 12:55

I\'m reading a book on docker. It is a couple of years old.

I\'ll cite:

If you want to get rid of all your stopped containers, you can use
the output of          


        
5条回答
  •  抹茶落季
    2021-02-13 13:26

    It could simply means that you have no container with a status 'exited'.

    The commands becomes then:

    sudo docker rm -v
    

    The lack of any parameter would trigger the error message you see.

    But today, this would be done with docker container prune anyway.

提交回复
热议问题