Logo

dev-resources.site

for different kinds of informations.

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

Published at
10/24/2024
Categories
tutorial
docker
Author
Sergio Peris
Categories
2 categories in total
tutorial
open
docker
open
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

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

Featured ones: