DEV Community

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

Posted on • Edited on • Originally published at sertxu.dev

1

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)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay