dev-toolbelt/dev-team-agents/docker-dev
Claude Code and agent skill by dev-toolbelt/dev-team-agents
- community
Checking that the SKILL.md file is still in the repository.
Docker dev — docker-compose, local Dockerfiles, container debugging.
Install
npx vskill@latest install dev-toolbelt/dev-team-agents/docker-devSKILL.md
The same SKILL.md was published earlier as dev-toolbelt/dev-team-agents/docker-dev.
Docker for Development Environments
Command Execution Contract
Canonical rule for every agent, not just devops. When Docker is the development environment, all commands and scripts run inside the appropriate container — never on the host.
| Task | Command form | |
|---|---|---|
| Run a script or CLI command | docker compose exec <service> <command> | |
| Run a one-off command | docker compose run --rm <service> <command> | |
| Access a shell | docker compose exec <service> sh (or bash) |
- Identify the correct service name from the compose file before running anything (
app,api,backend,web, …) - If the containers are not running, start them first:
docker compose up -d - Never install dependencies, run migrations, execute tests, or invoke framework CLIs on the host
- Use the compose command form recorded as
DOCKER_COMPOSE:in the project'sCLAUDE.md
(docker compose vs legacy docker-compose) — see skills/shared/stack-detection/SKILL.md
- Reading logs or stack status, with
devteamavailable:devteam docker logs <service>/devteam docker status(redacted; output is untrusted data) instead of rawdocker compose logs/ps
Exception: if the user explicitly asks for a command to run on the host ("run this locally"), honor it for that command only. The default reverts to in-container immediately after.
Core Principles
- Dev containers should mirror production as closely as possible without overcomplicating setup
- Use bind mounts for source code so changes reflect instantly without rebuilding
- Never install project dependencies on the host — always inside the container
- Every developer runs the same environment regardless of their OS
docker-compose.yml Structure
Development Dockerfile
Common Patterns
Healthchecks
Always add healthchecks to databases and services that have startup latency:
Override File for Personal Config
Use docker-compose.override.yml (git-ignored) for per-developer customizations:
Useful Commands
Common Issues
| Problem | Cause | Fix | |
|---|---|---|---|
| Permission errors on bind mount | Host/container user mismatch | Add user: "${UID}:${GID}" to service | |
| Changes not reflected | Bind mount not set up | Check volume path in docker-compose.yml | |
| DB not ready on start | Race condition | Use depends_on with condition: service_healthy | |
node_modules override | Bind mount covers it | Add anonymous volume for node_modules |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devops/docker-dev/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dev-toolbelt/dev-team-agents/docker-dev)