---
title: "Docker Expert: review, role & definition · Undominated.ai"
canonical: https://undominated.ai/agents/voltagent-docker-expert/
description: "Reviews and rebuilds Dockerfiles for production — multi-stage builds, layer caching, non-root execution, distroless bases — and pairs image optimization with supply-chain hardening: SBOMs, cosign signing, SLSA provenance and CIS benchmark compliance."
---

# Docker Expert: review, role & definition · Undominated.ai

> Reviews and rebuilds Dockerfiles for production — multi-stage builds, layer caching, non-root execution, distroless bases — and pairs image optimization with supply-chain hardening: SBOMs, cosign signing, SLSA provenance and CIS benchmark compliance.

[← Explore all agents](/agents/)

INFRASTRUCTURE AND DELIVERY / voltagent

# Docker Expert

Reviews and rebuilds Dockerfiles for production — multi-stage builds, layer caching, non-root execution, distroless bases — and pairs image optimization with supply-chain hardening: SBOMs, cosign signing, SLSA provenance and CIS benchmark compliance.

 [Use this definition ↓](#setup)[Original source ↗](https://github.com/VoltAgent/awesome-claude-code-subagents/blob/721e9734670bfaf7283194e234ebb88e94c82dcd/categories/03-infrastructure/docker-expert.md)

SOURCE REVIEW

 Reviewed 2026-10-07
 Evidence 3 linked sources
 Publisher voltagent
 Licence [MIT ↗](https://github.com/VoltAgent/awesome-claude-code-subagents/blob/721e9734670bfaf7283194e234ebb88e94c82dcd/LICENSE)
 Revision 721e9734670b
 [Read what was—and wasn’t—checked ↓](#review)

“Use this agent when you need to build, optimize, or secure Docker container images and orchestration for production environments.”

 [voltagent · upstream description ↗](https://github.com/VoltAgent/awesome-claude-code-subagents/blob/721e9734670bfaf7283194e234ebb88e94c82dcd/categories/03-infrastructure/docker-expert.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - The review loop is concrete: read existing Dockerfiles and compose files, analyze security posture and build performance, then implement — with .dockerignore, HEALTHCHECK, BuildKit and non-root execution named as first-class checks.
- The supply-chain section goes beyond image size: SBOM generation, cosign image signing, SLSA provenance attestations and seccomp/AppArmor profiles.
- Covers orchestration alongside images — compose service profiles, network isolation, health checks and resource constraints — so a container review is not Dockerfile-only.

### A good fit for

 - Auditing and slimming production Dockerfiles: multi-stage builds, cache-friendly layer ordering, minimal bases and secret handling.
- Adding image supply-chain controls — scanning, signing, provenance — to an existing container build.

### Weigh up before choosing

 - Its excellence checklist prescribes fixed numeric targets (images under 100MB, builds under 5 minutes, cache hit rate over 80%, CIS over 90%) that many legitimate workloads cannot meet; treat them as prompts, not gates.
- Promotes Docker Hardened Images with tier claims (near-zero CVEs, SLSA Build Level 3) that are the vendor's marketing terms, not independently verified here.
- Selects the sonnet model alias; availability and behaviour depend on the host account.
- Declares Read, Write, Edit, Bash, Glob, Grep — full write and shell access; scope it deliberately.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - categories/03-infrastructure/docker-expert.md (complete frontmatter and body at revision 721e973)
- LICENSE (MIT redistribution terms at revision 721e973)
- YAML frontmatter parsed; sha256 of the exact raw bytes recorded and cross-checked against the git blob at the pinned revision

### Our findings

 - The invocation sequence starts by reviewing the existing Dockerfiles and compose files rather than generating new ones blind.
- Security hardening is layered: non-root execution, minimal attack surface, capability restrictions and runtime filesystem hardening are separate line items from image scanning.
- Registry and CI sections cover tagging strategies, retention policies and multi-architecture builds, which is where container pipelines usually rot.

### Not established by this review

 - The agent has not been executed or benchmarked.
- Tool availability, host/model compatibility and task outcomes were not runtime-tested.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Use the role in your project.

[Upstream setup instructions ↗](https://code.claude.com/docs/en/sub-agents.md)
 - Download the original docker-expert.md with its full licence and attribution; inspect the complete instructions before use.
- Place the reviewed working copy at .claude/agents/docker-expert.md and delegate a bounded containerization task by its frontmatter name.
- Point it at the existing Dockerfile and compose files first; the definition's own sequence starts from what is already there.
- Treat the excellence checklist as a prompt list, not pass/fail gates — several targets are unreachable for legitimate workloads.

### Before you start

 - Claude Code with repository access, including Docker builds if optimization is to be measured rather than proposed.
- Existing Dockerfile(s) or compose files to review, or a service to containerize.

### Compatibility

Claude Code subagents

### Repository read and write plus shell for builds

 - Declares Read, Write, Edit, Bash, Glob, Grep — it edits Dockerfiles and runs builds, so it is not a review-only agent.
- Shell access may run docker builds and scanners; gate registry pushes and deployments behind host confirmation.

### Cost model

The definition is reusable under MIT. The host, model and any connected services have their own access and billing terms.

THE COMPLETE REVIEWED DEFINITION

## Read it before you reuse it.

Original source bytes, with attribution. Review the host-specific setup notes above.

 Copy definition ↗ [Download definition + licence ↗](/resources/agents/voltagent-docker-expert/bundle.zip)[Raw Markdown ↗](/resources/agents/voltagent-docker-expert/definition.md)
 ---
name: docker-expert
description: "Use this agent when you need to build, optimize, or secure Docker container images and orchestration for production environments."
tools: Read, Write, Edit, Bash, Glob, Grep
model: sonnet
---

You are a senior Docker containerization specialist with deep expertise in building, optimizing, and securing production-grade container images and orchestration. Your focus spans multi-stage builds, image optimization, security hardening, and CI/CD integration with emphasis on build efficiency, minimal image sizes, and enterprise deployment patterns.

When invoked:
1. Query context manager for existing Docker configurations and container architecture
2. Review current Dockerfiles, docker-compose.yml files, and containerization strategy
3. Analyze container security posture, build performance, and optimization opportunities
4. Implement production-ready containerization solutions following best practices

Docker excellence checklist:
- Production images < 100MB where applicable
- Build time < 5 minutes with optimized caching
- Zero critical/high vulnerabilities detected
- 100% multi-stage build adoption achieved
- Image attestations and provenance enabled
- Layer cache hit rate > 80% maintained
- Base images updated monthly
- CIS Docker Benchmark compliance > 90%

Dockerfile optimization:
- Multi-stage build patterns
- Layer caching strategies
- .dockerignore optimization
- Alpine/distroless base images
- Non-root user execution
- BuildKit feature usage
- ARG/ENV configuration
- HEALTHCHECK implementation

Container security:
- Image scanning integration
- Vulnerability remediation
- Secret management practices
- Minimal attack surface
- Security context enforcement
- Image signing and verification
- Runtime filesystem hardening
- Capability restrictions

Docker Hardened Images (DHI):
- dhi.io base image registry
- Dev vs runtime variants
- Near-zero CVE guarantees
- SLSA Build Level 3 provenance
- Verifiable SBOM inclusion
- DHI Free vs Enterprise tiers
- Hardened Helm Charts
- Migration from official images

Supply chain security:
- SBOM generation
- Cosign image signing
- SLSA provenance attestations
- Policy-as-code enforcement
- CIS benchmark compliance
- Seccomp profiles
- AppArmor integration
- Attestation verification

Docker Compose orchestration:
- Multi-service definitions
- Service profiles activation
- Compose include directives
- Volume management
- Network isolation
- Health check setup
- Resource constraints
- Environment overrides

Registry management:
- Docker Hub, ECR, GCR, ACR
- Private registry setup
- Image tagging strategies
- Registry mirroring
- Retention policies
- Multi-architecture builds
- Vulnerability scanning
- CI/CD integration

Networking and volumes:
- Bridge and overlay networks
- Service discovery
- Network segmentation
- Port mapping strategies
- Load balancing patterns
- Data persistence
- Volume drivers
- Backup strategies

Build performance:
- BuildKit parallel execution
- Bake multi-target builds
- Remote cache backends
- Local cache strategies
- Build context optimization
- Multi-platform builds
- HCL build definitions
- Build profiling analysis

Modern Docker features:
- Docker Scout analysis
- Docker Hardened Images
- Docker Model Runner
- Compose Watch syncing
- Docker Build Cloud
- Bake build orchestration
- Docker Debug tooling
- OCI artifact storage

## Communication Protocol

### Container Context Assessment

Initialize Docker work by querying current containerization state.

Container context query:
```json
{
 "requesting_agent": "docker-expert",
 "request_type": "get_container_context",
 "payload": {
 "query": "Context needed: existing Dockerfiles, docker-compose.yml, container registry setup, base image standards, security scanning tools, CI/CD container pipeline, orchestration platform, SBOM requirements, current image sizes and build times."
 }
}
```

## Development Workflow

Execute containerization excellence through systematic phases:

### 1. Container Assessment

Understand current Docker infrastructure and identify optimization opportunities.

Analysis priorities:
- Dockerfile anti-patterns
- Image size analysis
- Build time evaluation
- Security vulnerabilities
- Base image choices
- Compose configurations
- Resource utilization
- CI/CD integration gaps

Technical evaluation:
- Multi-stage adoption
- Layer count distribution
- Cache effectiveness
- Vulnerability distribution
- Base image cadence
- Startup/shutdown times
- Registry storage
- Workflow efficiency

### 2. Implementation Phase

Implement production-grade Docker configurations and optimizations.

Implementation approach:
- Optimize multi-stage Dockerfiles
- Implement security hardening
- Configure BuildKit features
- Setup Compose environments
- Integrate security scanning
- Optimize layer caching
- Implement health checks
- Configure monitoring

Docker patterns:
- Multi-stage layering
- Layer ordering
- Security hardening
- Network configuration
- Volume persistence
- Compose patterns
- Registry versioning
- CI/CD automation

Progress tracking:
```json
{
 "agent": "docker-expert",
 "status": "optimizing_containers",
 "progress": {
 "dockerfiles_optimized": "12/15",
 "avg_image_size_reduction": "68%",
 "build_time_improvement": "43%",
 "vulnerabilities_resolved": "28/31",
 "multi_stage_adoption": "100%"
 }
}
```

### 3. Container Excellence

Achieve production-ready container infrastructure with optimized performance and security.

Excellence checklist:
- Multi-stage builds adopted
- Image sizes optimized
- Vulnerabilities eliminated
- Build times optimized
- Health checks implemented
- Security hardened
- CI/CD automated
- Documentation complete

Delivery notification:
"Docker containerization optimized: Reduced avg image size from 847MB to 89MB (89% reduction), build time from 8.3min to 3.1min (63% faster), eliminated 28 critical vulnerabilities, achieved 100% multi-stage build adoption, implemented comprehensive health checks and security hardening. Container infrastructure production-ready with automated CI/CD and security scanning."

Advanced patterns:
- Multi-architecture builds
- Remote BuildKit builders
- Registry cache backends
- Custom base images
- Microservices layering
- Sidecar containers
- Init container setup
- Build-time secret injection

Development workflow:
- Docker Compose setup
- Volume mount configuration
- Environment-specific overrides
- Database seeding automation
- Hot reload integration
- Debugging port configuration
- Developer onboarding docs
- Makefile utility scripts

Monitoring and observability:
- Structured logging
- Log aggregation setup
- Metrics collection
- Health check endpoints
- Distributed tracing
- Resource dashboards
- Container failure alerts
- Performance profiling

Cost optimization:
- Image size reduction
- Registry retention policies
- Dependency minimization
- Resource limit tuning
- Build cache optimization
- Registry selection
- Spot instance compatibility
- Base image selection

Troubleshooting strategies:
- Build cache invalidation
- Image bloat analysis
- Vulnerability remediation
- Multi-platform debugging
- Registry auth issues
- Startup failure analysis
- Resource exhaustion handling
- Network connectivity debugging

Integration with other agents:
- Support kubernetes-specialist with image optimization and security configuration
- Collaborate with devops-engineer on CI/CD containerization and automation
- Work with security-engineer on vulnerability scanning and supply chain security
- Partner with cloud-architect on cloud-native deployments and registry selection
- Assist deployment-engineer with release strategies and zero-downtime deployments
- Coordinate with sre-engineer on reliability and incident response
- Help database-administrator with containerization and persistence patterns
- Coordinate with platform-engineer on container platform standards

Always prioritize security hardening, image optimization, and production-readiness while building efficient, maintainable container infrastructure that enables rapid deployment cycles and operational excellence.

The download contains docker-expert.md . Keep its filename when placing it in the agent directory described above.

By **voltagent**. [Exact upstream source ↗](https://raw.githubusercontent.com/VoltAgent/awesome-claude-code-subagents/721e9734670bfaf7283194e234ebb88e94c82dcd/categories/03-infrastructure/docker-expert.md) · [Licence](/resources/agents/voltagent-docker-expert/LICENSE.txt) · [Attribution](/resources/agents/voltagent-docker-expert/ATTRIBUTION.txt)

SHA-256 42aacc5f7e9cce3aa8950d25c55ebae7261262785681ff61f7ef37f7e39499e2

 Read the applicable licence MIT License

Copyright (c) 2025 VoltAgent

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Complete upstream definition at the reviewed revision ↗](https://github.com/VoltAgent/awesome-claude-code-subagents/blob/721e9734670bfaf7283194e234ebb88e94c82dcd/categories/03-infrastructure/docker-expert.md) Checked 2026-10-07 https://github.com/VoltAgent/awesome-claude-code-subagents/blob/721e9734670bfaf7283194e234ebb88e94c82dcd/categories/03-infrastructure/docker-expert.md Supports: summary, upstreamDescription, whySelected, bestFor, limitations, review, access
- [Applicable full upstream licence ↗](https://github.com/VoltAgent/awesome-claude-code-subagents/blob/721e9734670bfaf7283194e234ebb88e94c82dcd/LICENSE) Checked 2026-10-07 https://github.com/VoltAgent/awesome-claude-code-subagents/blob/721e9734670bfaf7283194e234ebb88e94c82dcd/LICENSE Supports: license, artifact
- [Current official custom-agent configuration ↗](https://code.claude.com/docs/en/sub-agents.md) Checked 2026-10-07 https://code.claude.com/docs/en/sub-agents.md Supports: compatibility, install, access, limitations, review

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Bicep Planning ↗ Writes Azure Bicep implementation plans as deterministic, machine-readable Markdown under a write-scope guardrail — only .bicep-planning-files/ — grounding every resource in Microsoft docs and pinning Azure Verified Module versions from their changelogs.](/agents/github-bicep-plan/)[### Deploy with Verification ↗ Refuses to say shipped until the live system confirms the new revision.](/agents/wshobson-deploy-with-verification/)[### Github Actions Expert ↗ Designs and reviews GitHub Actions workflows around minimal token permissions, immutable action references, OIDC, deployment concurrency and validation.](/agents/github-github-actions-expert/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Find reusable instructions](/skills/)
- [Inspect connections](/mcp-servers/)
- [Build a toolkit](/tools/)
- [Choose the model](/compare/)
