claude-home/patterns/docker/README.md
Cal Corum 2bfbc7bb77 CLAUDE: Initialize efficient documentation system for home lab
- Created structured documentation with /patterns/, /examples/, and /reference/ directories
- Implemented automatic context loading rules in CLAUDE.md based on file extensions, directories, and keywords
- Added technology-specific patterns for Docker, Python, Node.js, Vue.js, Bash, networking, databases, and VM management
- Included complete working examples for common workflows and troubleshooting references
- Designed for minimal context usage with precise loading triggers

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-08 19:59:29 -05:00

942 B

Docker Patterns

Container Best Practices

  • Use multi-stage builds for production images
  • Minimize layer count and image size
  • Run containers as non-root users
  • Use specific version tags, avoid latest
  • Implement health checks

Common Patterns

  • Multi-service applications: Use docker-compose for local development
  • Production deployments: Single-container per service with orchestration
  • Development environments: Volume mounts for code changes
  • CI/CD integration: Build, test, and push in pipeline stages

Security Considerations

  • Scan images for vulnerabilities
  • Use distroless or minimal base images
  • Implement resource limits
  • Network isolation between services
  • Examples: /examples/docker/multi-stage-builds.md
  • Examples: /examples/docker/compose-patterns.md
  • Reference: /reference/docker/troubleshooting.md
  • Reference: /reference/docker/security-checklist.md