refacto(tools): action_docker -> docker_action

This commit is contained in:
2026-02-22 20:57:18 +01:00
parent d343524e05
commit ac6acbf42e
7 changed files with 18 additions and 18 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/bin/bash
# docker_stop.sh - Stop a PostgreSQL Docker container
# Usage: ./docker_stop.sh [container_name]
set -e # Exit immediately if a command exits with a non-zero status
CONTAINER="${1:-postgres}"
if ! docker ps --format '{{.Names}}' | grep -q "^${CONTAINER}$"; then
echo "Container $CONTAINER is not running"
exit 0
fi
echo "Stopping container $CONTAINER"
docker stop "$CONTAINER"