#!/bin/sh {# nocheck: shell-template grandfathered, values only: the versioned unit name it starts #} # Cleans up anonymous Docker volumes and performs a full Docker system prune. set -e echo "Cleaning up anonymous Docker volumes via systemd service..." systemctl start {{ SYS_SERVICE_CLEANUP_ANONYMOUS_VOLUMES }} || exit 1 echo "Pruning Docker system resources (images, containers, networks, build cache)..." container system prune -a -f || exit 2 echo "Docker prune cleanup finished."