View on GitHub

notes

A collection of my TIL notes and commonplace book entries.

Removing Containers

Remove all containers with a specific status (e.g. exited):

$ docker rm $(docker ps -f status=exited -q)

Remove all containers:

docker rm $(docker ps -q)