14 lines
425 B
Bash
14 lines
425 B
Bash
#!/bin/bash
|
|
|
|
# One-liner command generator for Quick mode health check
|
|
# Usage: ./generate-quick-command.sh <service_name>
|
|
|
|
SERVICE_NAME="$1"
|
|
|
|
if [ -z "$SERVICE_NAME" ]; then
|
|
echo "Usage: $0 <service_name>"
|
|
echo "Example: $0 watchtower"
|
|
exit 1
|
|
fi
|
|
|
|
echo "docker ps -a --filter \"name=$SERVICE_NAME\" --format \"table {{.Names}}\t{{.Status}}\t{{.RunningFor}}\t{{.Ports}}\" && docker stats $SERVICE_NAME --no-stream" |