17 lines
443 B
Bash
Executable File
17 lines
443 B
Bash
Executable File
#!/bin/bash
|
|
# Quick Docker health check — list running containers
|
|
set -euo pipefail
|
|
|
|
echo "=== Docker Health Check — $(date) ==="
|
|
echo ""
|
|
|
|
RUNNING=$(docker ps --format 'table {{.Names}}\t{{.Status}}\t{{.Image}}' 2>/dev/null)
|
|
|
|
if [ -n "$RUNNING" ]; then
|
|
echo "$RUNNING"
|
|
echo ""
|
|
echo "✅ $(docker ps -q 2>/dev/null | wc -l) container(s) running"
|
|
else
|
|
echo "⚠️ No running containers found (or Docker not accessible)"
|
|
fi
|