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)
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)
© Ravi Mashru. 2022