Docker 助手
- 作者仓库星标 0
- 作者仓库 skills-registry
Docker Manager Skill
Manage Docker containers, images, and infrastructure directly from chat.
When to Use
✅ USE this skill when:
- "Show me running containers"
- "Restart the nginx container"
- "Check logs for my app"
- "How much memory is docker using?"
- "Remove unused images"
- "What ports are exposed?"
- "Pull the latest postgres image"
Core Commands
List & Status
# All containers (running + stopped)
docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
# Container resource usage (live)
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
# Disk usage summary
docker system df
Container Control
docker start <name>
docker stop <name>
docker restart <name>
docker rm <name> # remove stopped container
docker rm -f <name> # force remove running container
Logs
docker logs <name> --tail 100
docker logs <name> --tail 50 --follow # live tail
docker logs <name> --since 1h # last 1 hour
Images
docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"
docker pull <image>:<tag>
docker rmi <image>
docker image prune -f # remove dangling images
Cleanup
docker system prune -f # remove stopped containers + dangling images
docker system prune -af # aggressive: remove ALL unused images too
docker volume prune -f # remove unused volumes
Inspect
docker inspect <name>
docker exec -it <name> sh # shell into container
docker exec <name> <command> # run command in container
Networks
docker network ls
docker network inspect <name>
Response Format
When listing containers, always show: Name, Status, Image, Ports in a clean table. When showing logs, show the last 50 lines by default unless asked for more. When cleaning up, always show what was removed and how much space was freed.
Safety Rules
- NEVER remove volumes without explicit confirmation
- NEVER remove running containers unless asked to force-remove
- ALWAYS confirm before
system prune -afas it removes all unused images - Show container names, not just IDs
<!-- tomevault:4.0:skill_md:2026-05-22 -->Source: amirtechai/xclaw — distributed by TomeVault.
- 流狐分类
- 运维部署
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需手动接入
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- Docker
- 底层运行要求
- Docker
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 When to Use
✅ USE this skill when: "Show me running containers" "Restart the nginx container"
Core Commands
Core Commands
List & Status
List & Status
Container Control
Container Control
Logs
Logs
Images
Images
# Docker Manager Skill
Manage Docker containers, images, and infrastructure directly from chat.
## When to Use
✅ **USE this skill when:**
- "Show me running containers"
- "Restart the nginx container"
- "Check logs for my app"
- "How much memory is docker using?"
- "Remove unused images"
- "What ports are exposed?"
- "Pull the latest postgres image"
## Core Commands
### List & Status
```bash
# All containers (running + stopped)
docker ps -a --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
# Container resource usage (live)
docker stats --no-stream --format "table {{.Name}}\t{{.CPUPerc}}\t{{.MemUsage}}"
# Disk usage summary
docker system df
```
### Container Control
```bash
docker start <name>
docker stop <name>
docker restart <name>
docker rm <name> # remove stopped container
docker rm -f <name> # force remove running container
```
### Logs
```bash
docker logs <name> --tail 100
docker logs <name> --tail 50 --follow # live tail
docker logs <name> --since 1h # last 1 hour
```
### Images
```bash
docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"
docker pull <image>:<tag>
docker rmi <image>
docker image prune -f # remove dangling images
```
### Cleanup
```bash
docker system prune -f # remove stopped containers + dangling images
docker system prune -af # aggressive: remove ALL unused images too
docker volume prune -f # remove unused volumes
```
### Inspect
```bash
docker inspect <name>
docker exec -it <name> sh # shell into container
docker exec <name> <command> # run command in container
```
### Networks
```bash
docker network ls
docker network inspect <name>
```
## Response Format
When listing containers, always show: Name, Status, Image, Ports in a clean table.
… 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to Use → Core Commands → List & Status → Container Control → Logs → Images
要点 -> USE this skill when · Manage Docker containers, images, and infrastructure directly from chat. · When listing containers, always show: Name, Status, Image, Ports in a clean table. · --- > Source: [amirtechai/xclaw](https://github.com/amirtechai/xclaw) — distributed by [TomeVault](https://tomevault.io).
文件/命令 -> system prune -af · amirtechai/xclaw · github.com/amirtechai/xclaw
内容 SHA-256 -> cda47d3dee11
原文结构
适用与边界
原文中的明确线索
system prune -af、amirtechai/xclaw、github.com/amirtechai/xclaw