faradayio / cage

Develop and deploy complex Docker applications
http://cage.faraday.io
Apache License 2.0
307 stars 26 forks source link

cage clean: Add a way to clean up containers, volumes, etc. #102

Open emk opened 4 years ago

emk commented 4 years ago

This should only clean up containers and volumes associated with a project, and it should ideally be defined on top of existing docker clean or docker-compose clean subcommands, if those exist.

In particular, we want to automate things like:

docker rm -f $(docker ps -qa)
docker system prune -f && docker volume rm $(docker volume ls -q)