docker-expert · 0xfurai — субагент для Claude Code: что делает и как установить
Субагент docker-expert для Claude по части Docker: Dockerfile, Compose для нескольких сервисов, тома, сети, health checks и реестры.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/docker-expert.mdЧто делает docker-expert
Субагент берёт работу с Docker целиком: контейнеры, сборка образов, Compose для нескольких сервисов, сети, тома, реестры. В файле прописаны области фокуса, подход и чек-лист качества — субагент сверяется с ними.
Сборку он предлагает описывать в Dockerfile, многосервисные приложения собирать через Docker Compose, а образы уменьшать за счёт меньшего числа слоёв и .dockerignore. Про здоровье контейнеров помнит: health checks, лимиты ресурсов, логи через встроенные средства Docker. Пароли, прописанные прямо в Dockerfile, для него ошибка.
Установка — один файл: .claude/agents/docker-expert.md в проекте. Пока файла нет на этом пути, Claude субагента не подхватит.
Какие задачи решает
- Собрать Dockerfile без лишних слоёв
- Развести несколько сервисов в
docker-compose.yml - Добавить контейнеру health check и лимиты ресурсов
- Понять, почему данные пропадают после перезапуска, и подключить том
- Вычистить пароли из Dockerfile перед пушем в реестр
Примеры запросов агенту
- Через docker-expert собери Dockerfile для этого проекта и проверь его по своему чек-листу.
- Позови docker-expert: контейнер теряет файлы после перезапуска, разберись с томами.
- Пусть docker-expert добавит health check и лимит памяти в
docker-compose.yml.
Как установить docker-expert
Вручную: положить файлы
.claude/agents/docker-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/docker-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/docker-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о docker-expert
Как установить docker-expert в Claude Code?
Скопируйте файл субагента в .claude/agents/docker-expert.md внутри проекта.
Что делает docker-expert?
Ведёт задачи по Docker: контейнеры, сборка образов, Compose, сети, тома, реестры. Работает по подходу и чек-листу качества, записанным в файле субагента.
Что на выходе у этого субагента?
Dockerfile, compose-файлы, скрипты деплоя и бэкапа, отчёты о здоровье контейнеров, настройка логов и документация по окружению.
Исходный текст
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
Похожие субагенты
Все субагенты по теме «DevOps и инфраструктура» →Сначала — docker-expert от других авторов.