An OpenClaw agent skill for managing Docker containers via docker-socket-proxy.
This skill provides safe, whitelist-controlled Docker container management:
- Status reports — container health, resource usage, uptime
- Log analysis — error/warning counts, filtered log output
- Restarts — controlled restarts with post-restart verification
All operations go through a docker-socket-proxy (read-only socket access + limited write for restarts).
dockerCLI available in PATHjqavailable in PATHDOCKER_HOSTenvironment variable pointing to the docker-socket-proxy (e.g.tcp://docker-socket-proxy:2375)- A whitelist YAML file defining allowed containers
The skill reads a YAML whitelist to determine which containers it can operate on:
containers:
- name: my_container
description: "Service description"
can_restart: truePath resolution:
SYSCTL_WHITELIST_PATHenvironment variable (required). There is no fallback — if the variable is not set, no Docker commands will be executed.
docker ps— list containersdocker inspect— container detailsdocker stats --no-stream— resource usage (one-shot)docker logs --since --tail— log analysisdocker restart— restart (explicit user request only)
Everything else: rm, stop, kill, exec, run, pull, build, push, network, volume, image, system, compose.
- Container names are validated against the whitelist before any command
- User input is never passed directly into shell commands
- Restarts require explicit user request and
can_restart: truein the whitelist - Log output is capped at 500 lines per query
docker-ops/
├── SKILL.md # Main skill instructions
├── README.md # This file
├── LICENSE # MIT License
├── CHANGELOG.md # Version history
├── references/
│ └── docker-commands.md # Docker CLI quick reference
└── scripts/
└── container-report.sh # Automated report script
This skill is used by the SysCtl agent automatically. When a user asks for container status, logs, or a restart, the agent follows the procedures defined in SKILL.md.
- "Status report for uuidgen"
- "Show errors in the last 2 hours"
- "Restart the uuidgen container"
MIT — see LICENSE.