Docker init

This commit is contained in:
StewKI
2026-05-17 16:02:29 +02:00
parent f562b55b19
commit 8dae336819
4 changed files with 99 additions and 0 deletions

12
docker/stop.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail
CONTAINER="ewc2025-mysql"
if ! docker ps -a --format '{{.Names}}' | grep -q "^${CONTAINER}$"; then
echo "Container '${CONTAINER}' does not exist."
exit 0
fi
docker stop "${CONTAINER}"
echo "Container '${CONTAINER}' stopped. Data volume preserved."