docker-manager
Inspect, run, build, and clean up Docker containers, images, networks, and volumes from a shell or agent with safe defaults.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- docker-manager
- risk
- high
- source
- openclawskills.net
- aliases
- [ "docker", "container", "image", "compose", "podman" ]
- enabled
- true
- version
- 1.0.0
- category
- coding_and_devops
- keywords
- [ "docker", "container", "image", "compose", "podman", "volume", "network", "prune", "build" ]
- metadata
- { "openclaw": { "requires": { "env": [], "bins": [] }, "primaryEnv": null } }
- triggers
- [ "List docker containers", "Tail container logs", "Restart this container", "Prune docker", "Build this image" ]
- description
- Inspect, run, build, and clean up Docker containers, images, networks, and volumes from a shell or agent with safe defaults.
- required_tools
- [ "docker" ]
03 SKILL.md 正文
Docker Manager
Purpose
Make common Docker operations safe and scriptable for an agent: list, inspect, run,
build, prune, and (with explicit confirmation) destroy. The skill defaults to read
or report mode; any state change is gated by an --apply flag.
When to Use
- The user wants to inspect or control Docker resources
- A dev environment needs to be brought up or torn down
- A build is failing and the user needs the logs
When NOT to Use
- The user has no Docker daemon access
- The user wants Kubernetes operations (use a different skill)
- The user wants production orchestration
Capabilities
ps,images,networks,volumes(all read-only)logs <container>(tail with timestamp)exec <container> <cmd>(interactive shell)restart,start,stop(gated)compose up/down/ps/logs(gated)build(gated, with--no-cacheopt-in)system prune(gated, with size preview)rm/rmi(gated, never default)
Inputs
- subcommand (
ps,logs,exec, …) - target (container / image / volume / network id or name)
--applyfor any state-changing operation (default false)--dry-runto print the command without running it
Workflow
- Detect Docker (or Podman, via
DOCKER_HOSTor alias). - Validate the subcommand against the allowlist.
- For read-only ops: run, parse, format (table or JSON).
- For state-changing ops: print the exact command, ask for
--applyconfirmation. - For destructive ops (
rm,rmi,system prune): require--apply --forceand a 5-second grace period with a clear "type YES to continue" prompt. - Report what changed, with IDs, before and after.
Tools
docker(orpodman)jqfor JSON shapingless/tailfor log streaming
Examples
User: "Show running containers."
Response: docker ps --format '{{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}'.
User: "Tail the api logs."
Response: docker logs -f --tail 200 --timestamps api.
User: "Prune everything not in use."
Response: Will free ~3.2 GB across 14 images, 3 networks. Type YES to proceed.
Safety
- All destructive ops require explicit
--applyconfirmation system prunerequires--apply --forceand a typed confirmation- Never
rma container with statusUpwithout a stop first - Never
rmian image that has child images (warn first) - Cap log tail at 10 MB per request
Source
Auto-generated from openclawskills.net description.
Pairs Well With
dokploy(Dokploy runs Docker underneath)security-scanner(scan images before deploy)system-monitor(correlate container stats with host load)
04 同仓库更多 Skills
dei-assessment
Assess diversity, equity, and inclusion with metrics. TRIGGERS - Use when user needs help with dei-assessment related tasks.
dei-action-plan
Create DEI action plans with goals and initiatives. TRIGGERS - Use when user needs help with dei-action-plan related tasks.
culture-fit-assessment
Design culture add assessment processes. TRIGGERS - Use when user needs help with culture-fit-assessment related tasks.
cowork-to-code-bridge
Use an already-installed, independently verified cowork-to-code bridge to run narrowly approved actions on the user's own macOS, Linux, or WSL2 machine through a local file queue.
counter-offer-response
Draft counter-offer responses for retention. TRIGGERS - Use when user needs help with counter-offer-response related tasks.
continuous-feedback-system
Design continuous feedback systems. TRIGGERS - Use when user needs help with continuous-feedback-system related tasks.