14 lines
390 B
PowerShell
14 lines
390 B
PowerShell
# Stop and remove all containers, images, and networks from the Compose file
|
|
docker compose down --rmi all
|
|
|
|
# Prune all unused Docker objects including volumes
|
|
docker system prune --all --volumes --force
|
|
|
|
# Prune unused build cache
|
|
docker builder prune --all --force
|
|
|
|
# Prune all unused volumes
|
|
docker volume prune --all --force
|
|
|
|
# Rebuild and start the containers
|
|
docker compose up --build |