Tuesday, December 20, 2016

Remove all your stopped containers

Remove all your stopped containers:

# docker rm -v $(docker ps -aq -f status=exited)

Note: -v argument will remove the volumes associated with the container that aren't referenced by other containers.

No comments: