Docker Claude Skill
Description
Claude Code skill for container-based development with Docker
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Docker Development Skill for Claude Code
A Claude Code skill for container-based development with Docker. Ensures all package installations and code execution happen inside containers, keeping your host machine clean.
Installation
git clone https://github.com/wrsmith108/docker-claude-skill.git ~/.claude/skills/docker
Key Principle
**Never run `npm`, `node`, `npx`, `tsx`, or project scripts directly on the host machine.**
Always use `docker exec ` instead.
What's Included
- First-Time Setup Guide: Step-by-step configuration for new projects
- Native Module Compatibility: Alpine vs Slim decision guide (glibc requirements)
- Enforcement Rules: Block npm/node commands from running on host
- Pre-Flight Checks: Verify container status before commands
- Command Reference: docker exec, docker-compose patterns
- Troubleshooting: Common issues including
ERR_DLOPEN_FAILEDfixes - Project Configuration:
.claude/docker-config.jsonfor per-project settings
Quick Start
1. Configure for Your Project
Create `.claude/docker-config.json`:
{
"containerName": "my-project-dev-1",
"baseImage": "node:20-slim",
"port": 3000,
"hasNativeModules": true
}
2. Choose Base Image
| Your Project Has | Use |
|---|---|
| Native modules (sqlite, sharp, bcrypt) | node:20-slim |
| Pure JavaScript/TypeScript only | node:20-alpine |
| Unsure | node:20-slim (safe default) |
3. Start Container
docker compose --profile dev up -d
docker exec my-project-dev-1 npm install
4. Run Commands in Container
docker exec my-project-dev-1 npm test
docker exec my-project-dev-1 npm run build
docker exec my-project-dev-1 npm run lint
Why Docker?
- Clean Host: No node_modules pollution on your machine
- Reproducible: Same environment for all developers
- Isolated: Project dependencies don't conflict
- Secure: No global pack
Related Skills
Docker
---
DevOps Kubernetes
---
DevOps AWS Skills
AWS development with CDK best practices, cost optimization MCP servers, and serverless/event-driven architectu
DevOps Composio Split
Manage Split feature flags and experiments
DevOps **claude-code-router**
(25.3k ⭐) - Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interac
DevOps CLAUDE.md CI/CD Wiki
Community patterns for CLAUDE.md configuration in CI/CD pipelines.
DevOps