Skip to main content
subagent CX Codex

docker-expert · 0xfurai — Claude Code subagent: what it does, how to install

docker-expert — a Claude subagent for Docker work: Dockerfiles, Compose stacks, volumes, networking, health checks and registries.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/docker-expert.md
Open on GitHub

What docker-expert does

Container management, image builds, Compose for multi-service apps, networking, volumes, registries: the agent takes the whole Docker path. Focus areas, approach and a quality checklist are written into the file, and it works from those.

Builds go through a Dockerfile, multi-container setups through Docker Compose, and image size shrinks with fewer layers and a .dockerignore. Health checks and resource limits come up as requirements, not extras. A password sitting inside a Dockerfile counts as a defect.

Setup is a single file: .claude/agents/docker-expert.md in the project. Until that file is there, Claude has no agent to load.

What it helps with

  • Write a Dockerfile with fewer layers
  • Wire several services together in Compose
  • Give a container a health check and memory limits
  • Work out why data disappears on restart and attach a volume
  • Strip secrets out of a Dockerfile before a registry push

Example prompts for the agent

  • Use the docker-expert subagent to write a Dockerfile for this project and check it against its quality list.
  • docker-expert: the container loses uploaded files after a restart, sort out the volumes.
  • Have docker-expert add a health check and a memory limit to docker-compose.yml.

How to install docker-expert

Manually: put the files in place

.claude/agents/docker-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about docker-expert

How do I install docker-expert in Claude Code?

Copy the agent file to .claude/agents/docker-expert.md inside your project.

What does docker-expert do?

It handles Docker tasks such as container management, image builds, Compose stacks, networking, volumes and registries, following the approach and quality checklist stored in the file.

What does it produce?

Dockerfiles, Compose files, deployment and backup scripts, notes on container health and logging, and documentation for the Docker setup.

Source text

docker-expert.md · MIT
---
name: docker-expert
description: Expert in all aspects of Docker, including containerization, image creation, and orchestration.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Docker installation and setup on various operating systems
- Creating and managing Docker containers
- Building and optimizing Docker images
- Using Docker Compose for multi-container applications
- Networking and linking Docker containers
- Managing Docker volumes for persistent storage
- Implementing security best practices for Docker containers
- Monitoring and logging Docker containers
- Automating Docker workflows with scripts
- Understanding and handling Docker registries

## Approach

- Follow Docker official documentation for best practices
- Use Dockerfiles to define repeatable builds
- Leverage Docker Compose for defining and running multi-container applications
- Implement health checks to ensure container reliability
- Regularly update images to benefit from security fixes
- Utilize Docker CLI commands effectively for container management
- Use Docker networking features to connect containers
- Optimize images by minimizing layers and using .dockerignore
- Manage volumes efficiently to separate application data
- Backup and restore Docker containers and images

## Quality Checklist

- Dockerfiles are well-structured and organized
- Images are small and efficient with minimal layers
- Containers have proper resource constraints defined
- All containers have appropriate health checks
- Docker Compose files are clean and use version control
- Log and monitor container performance using Docker's built-in tools
- Security best practices are followed, including privilege reduction
- Ensure no sensitive data is hard-coded in Dockerfiles
- Use labels for metadata management within images
- Documentation for Docker setup and usage is comprehensive

## Output

- Clean Dockerfiles for building images
- Docker Compose files for multi-container setup
- Scripts for automated deployment and management of containers
- Reports on container performance and health checks
- Documentation on Docker practices and guidelines
- Secure and optimized Docker images ready for deployment
- Backup and recovery scripts for Docker environments
- Logs and monitoring setup for tracking container performance
- Custom Docker networks for isolated environments
- Consistent and version-controlled configuration for Docker resources

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for DevOps and infrastructure →

docker-expert by other authors comes first.

docker-expert VoltAgent Community docker-expert — a subagent that builds, optimizes and secures Docker images and orchestration for production. Useful when your image has grown fat and the build drags. CX Codex ★ 26,718repo stars docker-expert VoltAgent The docker-expert subagent reviews Dockerfiles, image builds, and container runtime issues. Use it for multi-stage build fixes and startup debugging. CX Codex ★ 6,505repo stars docker-expert carlrannaberg docker-expert — a Docker subagent for Claude that reads your Dockerfile and Compose setup, then goes after image size, build caching and container security. CX Codex ★ 763repo stars docker-essentials sundial-org docker-essentials is a Claude Code skill with Docker commands for container lifecycle, logs, exec, image builds, Compose, networks, and volumes, for quick command lookup. CX Codex +1 166installs docker-patterns affaan-m docker-patterns — a skill with Dockerfile and Docker Compose patterns: local dev stacks, networking, volumes, container hardening. CX Codex +1 8,600installs docker-compose-orchestration manutej docker-compose-orchestration — a skill that helps your agent write Docker Compose files for multi-container apps: services, networks, volumes, health checks and startup order. CX Codex +1 3,000installs docker-compose-patterns docker docker-compose-patterns is a Claude Code skill for creating, debugging, and wiring services in compose.yaml. It configures health checks, persistent volumes, and development overrides. CX Codex +1 2,900installs docker-project-foundations docker The docker-project-foundations skill bootstraps Docker environments from scratch. It generates a baseline set of .dockerignore, Dockerfile, and compose.yaml files. CX Codex +1 1,700installs docker Mindrally Establishes best practices for lean Docker images, multi-stage builds, container security, and Compose workflows. CX Codex +1 1,200installs

From the same set137

The whole set →
nestjs-expert nestjs-expert is a Claude Code subagent for structuring NestJS applications and REST APIs. It handles architecture, validation, route protection, and tests. CX Codex ★ 1,029repo stars php-expert php-expert — a subagent for PHP work: PHP 8+ syntax, sessions, Composer and PDO, checked against a PSR and security checklist. CX Codex ★ 1,029repo stars aspnet-core-expert aspnet-core-expert — a subagent for designing, debugging, and optimizing ASP.NET Core web services, middleware, and database access. CX Codex ★ 1,029repo stars sql-expert The sql-expert subagent handles complex SQL, execution plans, indexes, schemas, and transactions. Use it when a query or database design needs a closer review. CX Codex ★ 1,029repo stars cockroachdb-expert cockroachdb-expert — a subagent for CockroachDB cluster setup, schema design, and distributed SQL query tuning. Helps configure multi-region replication and backup routines. CX Codex ★ 1,029repo stars react-expert react-expert is a Claude Code subagent for React refactoring, performance work, and complex state changes. It can handle tasks involving hooks, context, and unnecessary renders. CX Codex ★ 1,029repo stars csharp-expert csharp-expert — a C# subagent that checks code against SOLID, moves blocking calls to async/await and hunts bottlenecks. Handy when you refactor or inherit an unfamiliar module. CX Codex ★ 1,029repo stars oauth-oidc-expert oauth-oidc-expert is a Claude Code subagent for OAuth 2.0 and OpenID Connect. It helps review sign-in flows, token handling, and API security. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open