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 agentmods add instructions/mclifeleader/seq-mcp/containerization-docker-best-practicesgit clone --depth 1 https://github.com/MCLifeLeader/seq-mcpWrote 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/instructions/mclifeleader/seq-mcp/containerization-docker-best-practices)<a href="https://agentmods.dev/instructions/mclifeleader/seq-mcp/containerization-docker-best-practices"><img src="https://agentmods.dev/badge/instructions/mclifeleader/seq-mcp/containerization-docker-best-practices.svg" alt="Measured on agentmods" height="20"></a>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.07732 | $0.07732 |
| Opus 5 | $0.03866 | $0.03866 |
| Sonnet 5 | $0.01546 | $0.01546 |
| Haiku 4.5 | $0.00773 | $0.00773 |
Grade D, and why
seq-mcp containerization-docker-best-practices.instructions.md scanned grade D with 3 findings 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 5d 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.
Hidden instructionshighPrompt injection
Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.
<!-- End of Containerization & Docker Best Practices Instructions --> Recursive force deletemediumDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- Clean up temporary files in the same `RUN` command (`rm -rf /var/lib/apt/lists/*`). Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
CMD curl --fail http://localhost:8080/health || exit 1 This is a copy
89% identical to custom_github_copilot_agent_builder containerization-docker-best-practices.instructions.md — 182 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 746 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Containerization & Docker Best Practices
Your Mission
As GitHub Copilot, you are an expert in containerization with deep knowledge of Docker best practices. Your goal is to guide developers in building highly efficient, secure, and maintainable Docker images and managing their containers effectively. You must emphasize optimization, security, and reproducibility.
Supported File Naming Conventions
These instructions apply to both Dockerfile and Docker Compose configurations. The following file naming patterns are supported:
Dockerfiles:
Dockerfile- Standard Dockerfile namingDockerfile.*- Dockerfiles with suffixes (e.g.,Dockerfile.dev,Dockerfile.prod)*.dockerfile- Files with .dockerfile extension
Docker Compose Files:
docker-compose.yml/docker-compose.yaml- Legacy Docker Compose V1 naming conventioncompose.yml/compose.yaml- Docker Compose V2 standalone file naming convention
Both docker-compose* and compose* naming patterns are supported to ensure compatibility with both Docker Compose V1 (legacy) and V2 (current) file naming conventions.
Core Principles of Containerization
1. Immutability
- Principle: Once a container image is built, it should not change. Any changes should result in a new image.
- Deeper Dive:
- Reproducible Builds: Every build should produce identical results given the same inputs. This requires deterministic build processes, pinned dependency versions, and controlled build environments.
- Version Control for Images: Treat container images like code - version them, tag them meaningfully, and maintain a clear history of what each image contains.
- Rollback Capability: Immutable images enable instant rollbacks by simply switching to a previous image tag, without the complexity of undoing changes.
- Security Benefits: Immutable images reduce the attack surface by preventing runtime modifications that could introduce vulnerabilities.
- Guidance for Copilot:
- Advocate for creating new images for every code change or configuration update, never modifying running containers in production.
- Recommend using semantic versioning for image tags (e.g.,
v1.2.3,latestfor development only). - Suggest implementing automated image builds triggered by code changes to ensure consistency.
- Emphasize the importance of treating container images as artifacts that should be versioned and stored in registries.
- Pro Tip: This enables easy rollbacks and consistent environments across dev, staging, and production. Immutable images are the foundation of reliable deployments.
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.
- 5d ago First seen · 746 lines · 7,732 tokens per session scan D b5cb88be55c0
seq-mcp containerization-docker-best-practices.instructions.md is an instructions file published in the GitHub repository MCLifeLeader/seq-mcp (2 stars, last pushed 1mo ago), licensed MIT. It adds 7,732 tokens to every session, about $0.0387 per session on Opus 5. A static security scan graded it D with 3 findings (hidden instructions, recursive force delete, makes network calls). It is 89% identical to custom_github_copilot_agent_builder containerization-docker-best-practices.instructions.md, differing in 182 lines, and is treated as a copy.
Other instructions, from other repositories
mcp-dockhand CLAUDE.md
Claude Code instructions for strausmann/mcp-dockhand, covering claude.md — mcp-dockhand server, projektübersicht, tech stack, verzeichnisstruktur and konventionen.
mcp-dockhand copilot-instructions.md
Copilot instructions for strausmann/mcp-dockhand, covering copilot instructions — mcp-dockhand, project context, critical: verify against upstream, code review guidelines and security.
homelab-mcp CLAUDE.md
Instructions for bjeans/homelab-mcp, covering claude development guide for homelab mcp, project overview, core philosophy, project structure and architecture patterns.
Kilntainers CLAUDE.md
Instructions for Kiln-AI/Kilntainers, covering kilntainers: secure agent sandboxes, specs and commands & tools.
appwrite AGENTS.md
AGENTS.md instructions for appwrite/appwrite, covering appwrite, commands, stack, layout and libraries.
icloud-docker AGENTS.md
AGENTS.md instructions for mandarons/icloud-docker, covering icloud docker, quick reference, commands, architecture overview and key conventions.