Docker Tip #2 - Remove all containers

After you have killed all your containers you might wonder how you would go about removing all those killed containers.

Well it is really very easy and similar to killing all the containers.

    docker rm $(docker ps -q -a)

And for bash users the alias would be:

    alias docker-rm='docker rm $(docker ps -q -a)'


Posted August 22, 2016