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
.claude/agents/docker-expert.mdWhat 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.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/docker-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/docker-expert.mdCursor also reads .claude/agents/
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.