Initial commit: homelab maintenance and automation scripts
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user