Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add seaworld008/Commonly-used-high-value-skills --skill docker-expertgit clone --depth 1 https://github.com/seaworld008/Commonly-used-high-value-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/docker-expert)<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/docker-expert"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/docker-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/seaworld008/commonly-used-high-value-skills/docker-expert"><img src="https://agentmods.dev/badge/skills/seaworld008/commonly-used-high-value-skills/docker-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Agent Snooping · line 8 Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00042 | $0.01987 |
| Opus 5.5 | $0.00017 | $0.00795 |
| Sonnet 5.5 | $0.00008 | $0.00397 |
| Haiku 4.5 | $0.00004 | $0.00199 |
Grade A, and why
docker-expert scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
CMD wget --quiet --tries=1 --spider http://localhost:3000/health || exit 1 How it starts
The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Docker Expert
触发条件
- 当需要将应用容器化,并确保开发、测试、生产环境一致性时。
- 面对庞大的 Docker 镜像体积,需要优化构建流水线和存储效率时。
- 需要通过 Docker Compose 协调多个互相关联的微服务容器时。
- 需要解决复杂的网络通信、数据持久化卷管理或权限隔离问题时。
- 实施 CI/CD 流水线,将构建结果自动推送到镜像仓库并进行安全扫描时。
核心能力
1. Dockerfile 多阶段构建 (Multi-stage Builds)
- 分离构建与运行: 使用
AS关键字定义多个阶段。在第一阶段进行源码编译、依赖安装;在第二阶段仅拷贝最终产物(如编译后的二进制文件或静态资源)到轻量级基础镜像(如 Alpine 或 Distroless)中。 - 减少层数: 合理合并
RUN指令,清理构建过程中的临时文件(如npm cache clean,apt-get clean)。 - 优化缓存: 先拷贝依赖定义文件(
package.json,go.mod),运行安装命令,最后再拷贝源代码。这能显著提高后续构建速度。
2. 镜像体积优化 (Image Optimization)
- 选择合适的基础镜像: 优先使用
alpine,slim版本,或 Google 的distroless镜像以降低攻击面。 - .dockerignore: 排除不必要的文件(
.git,node_modules,tests,docs),减小上传给 Docker daemon 的上下文体积。 - squash 选项: 实验性功能,用于合并最终镜像层(慎用,通常多阶段构建已足够高效)。
3. Docker Compose 服务编排
- YAML 结构化配置: 管理服务、网络(Networks)和卷(Volumes)。
- 依赖顺序控制: 使用
depends_on及其condition: service_healthy(结合healthcheck)确保依赖服务就绪后再启动主应用。 - 多环境复用: 利用
docker-compose.override.yml或env_file实现不同环境的差异化配置。
4. 网络与卷管理 (Networking & Volumes)
- 网络模式: 理解
bridge(默认隔离)、host(无隔离,高性能)、none及自定义 overlay 网络。 - 卷持久化: 区分
bind mounts(挂载主机目录,常用于开发)和named volumes(由 Docker 管理,常用于生产)。 - 权限安全: 避免使用 root 用户运行容器。在 Dockerfile 中通过
USER指令切换到非特权用户。
5. 安全扫描与审计 (Security Scanning)
- 漏洞扫描: 使用
docker scan(Snyk),Trivy或Clair检查镜像中的已知 CVE。 - 秘密信息管理: 绝不将 API Keys 或密码写入 Dockerfile 或环境变量。应使用 Docker Secrets 或外部 Vault。
- 资源限制: 在 Compose 或容器启动时限制
--cpus,--memory,防止容器资源耗尽攻击(DoS)。
6. CI/CD 集成 (Pipeline Integration)
- 构建标记: 结合 Git Commit SHA 或语义化版本号进行打标(Tagging)。
- 远程缓存: 使用
--cache-from提升流水线中的镜像构建速度。 - 镜像仓库交互: 安全地执行
docker login,push流程。
常用命令/模板
故障排查
# 查看容器资源占用 (CPU, Memory, Network)
docker stats --no-stream
# 进入运行中的容器排查网络
docker exec -it <container_id> /bin/sh -c "ping db_host && nslookup api_service"
# 查看主机磁盘占用,定位占用空间的对象
docker system df -v
# 查看镜像层级与体积详情
docker history <image_name>
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed 343a315fa45c
- 12d ago Changed · +18 lines de66c44bbf0c
- 3mo ago First seen · 149 lines · 42 tokens per session scan A ff5abc5b6a75
docker-expert is a skill published in the GitHub repository seaworld008/Commonly-used-high-value-skills (75 stars, last pushed yesterday), licensed MIT. It adds 42 tokens to every session and 1,987 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
docker-expert compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| docker-expertseaworld008/Commonly-used-high-value-skills | Skill | 75 | yesterday | MIT | A | 42 | Claude Code, Codex |
| extension-developmentalfredxw/denova | Skill | 1.1k | yesterday | Apache-2.0 | A | 21 | Claude Code, Codex |
| analyzing-docker-container-forensicsoyi77/1ai-skills | Skill | 19 | today | MIT | A | 45 | Claude Code |
| lastlight-servernearform/lastlight | Skill | 48 | today | MIT | B | 109 | Claude Code |
| container-manager-mcp-developmentKnuckles-Team/container-manager-mcp | Skill | 7 | 2d ago | MIT | A | 57 | Claude Code, Codex |
| write-dockerfilesoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 61 | Claude Code, Codex |
| docker-compose-local-setupsoulcodex/agentic | Skill | 10 | 10d ago | MIT | A | 52 | Claude Code, Codex |