Files
NetAlertX/.devcontainer/scripts/confirm-docker-prune.sh
2025-10-12 15:05:20 -04:00

13 lines
270 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