fix/docker-log-rotation-disk-management (#93)

Co-authored-by: openhands <openhands@all-hands.dev>
Reviewed-on: https://codeberg.org/johba/harb/pulls/93
This commit is contained in:
johba 2025-11-09 12:57:49 +01:00
parent 5d71753086
commit 19bac420d0
4 changed files with 78 additions and 1 deletions

View file

@ -162,7 +162,12 @@ start_stack() {
stop_stack() {
cleanup_existing
${COMPOSE_CMD} down
echo "[ok] Stack stopped"
# Prune Docker resources to prevent disk bloat
echo " Pruning Docker resources..."
${RUNTIME_CMD} system prune -f --volumes 2>&1 | grep -E "Total reclaimed|deleted" || true
echo "[ok] Stack stopped and cleaned"
}
check_health() {