erp-platform/configs/deployment/scripts/docker/clean.sh
2025-08-31 15:36:34 +03:00

11 lines
308 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash
echo "[Başlıyor] Docker temizlik işlemi"
# "keep=true" label'li container ve imajları silme
docker container prune -f --filter "label!=keep=true"
docker image prune -a -f --filter "label!=keep=true"
docker volume prune -f
docker builder prune -a -f
echo "[Bitti] Disk kullanımı:"
df -h /