DEV Community

Cover image for Docker Compose: Remove all containers, networks, volumes and images from a project
Sergio Peris
Sergio Peris

Posted on • Originally published at sertxu.dev

Docker Compose: Remove all containers, networks, volumes and images from a project

Docker Compose allows us to run dockerized projects, it pulls images, creates networks, volumes and containers.

If you want to completely remove the project from your system, you can use the following command:

docker compose down -v --rmi all --remove-orphans
Enter fullscreen mode Exit fullscreen mode

This command will remove all containers, volumes, networks and images that belong to the docker-compose.yml project.

Top comments (0)