Files
NetAlertX/.devcontainer/scripts/confirm-docker-prune.sh
2025-10-15 18:18:30 -04:00

15 lines
284 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
read -r -p "Are you sure you want to destroy your host docker containers and images? Type YES to continue: " reply
if [[ "${reply}" == "YES" ]]; then
docker system prune -af
docker builder prune -af
else
echo "Aborted."
exit 1
fi
echo "Done."