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.01847 |
| Opus 5 | $0.00021 | $0.00924 |
| Sonnet 5 | $0.00008 | $0.00369 |
| Haiku 4.5 | $0.00004 | $0.00185 |
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 12d 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 — 149 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 prune -af --volumes
# 查看镜像层级与体积详情
docker history <image_name>
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.
- 12d 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 (70 stars, last pushed 4d ago), licensed MIT. It adds 42 tokens to every session and 1,847 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
analyzing-docker-container-forensics
Use when investigate compromised Docker containers by analyzing images, layers, volumes, logs, and runtime artifacts to identify malicious activity and evidence. Use when working with analyzing docker container forensics.
analyzing-kubernetes-audit-logs
Use when parses Kubernetes API server audit logs (JSON lines) to detect exec-into-pod, secret access, RBAC modifications, privileged pod creation, and anonymous API access. Builds threat detection rules from audit event patterns. Use when investigating Kubernetes cluster compromise or building k8s-specific SIEM…
kubernetes-best-practices
Provides production-ready Kubernetes manifest guidance including resource management, security, high availability, and configuration best practices. This skill should be used when working with Kubernetes YAML files, deployments, pods, services, or when users mention k8s, container orchestration, or cloud-native…
image-security-scanner
Scans Docker images for security vulnerabilities, outdated packages, and misconfigurations. Use when checking image security, finding vulnerabilities, or hardening containers.
cloud-build-helper
Configures Google Cloud Build pipelines with caching, parallel builds, and optimization. Use when setting up Cloud Build, optimizing build performance, or configuring CI/CD pipelines.
proxmox-cluster-ops
Operate a Proxmox VE cluster safely — read-only inspection with pvesh/pct/qm/pvecm instead of hand-editing a live guest, node-by-node package updates that respect quorum, and the shape of joining a new node to an existing cluster. Use when inspecting cluster or guest state, planning a rolling update across cluster…