Install
openclaw skills install laolaoqi-docker-healthMonitor Docker container health: running status, CPU/memory usage, restart counts, and available image updates. Use when a user requests Docker health checks, container monitoring, resource usage reports, restart tracking, or image freshness audits — run targeted checks or a full health report.
openclaw skills install laolaoqi-docker-healthscripts/docker-health.sh — the single entry point for all checks.
The script is self-contained and works on any system with Docker installed. It auto-detects the Docker socket availability and gracefully handles permission issues.
Run a full health report:
bash scripts/docker-health.sh --all
Or with no arguments (same as --all):
bash scripts/docker-health.sh
Run any single check by name:
| Command | What it checks |
|---|---|
--status | Lists all containers with their current status (running, stopped, paused, etc.) |
--resources | Shows CPU and memory usage per container via docker stats |
--restarts | Flags containers that have restarted more than 3 times |
--images | Checks for available image updates by comparing local image digests with registry |
--full | Runs all checks in sequence (same as --all) |
Example:
bash scripts/docker-health.sh --status --restarts
bash scripts/docker-health.sh --alldocker logs <container> and review healthcheck configuration--memory limits in the container's run/stack config; check for memory leaks in the applicationdocker pull to update images; consider automated update workflows (watchtower, renovate-bot)/var/run/docker.sock) — run as root or add user to the docker group--resources runs docker stats in non-streaming mode (one-shot per container) for quick snapshots--images checks are advisory — uses docker inspect for image digests and checks for newer versions; requires network access to the registry