← ClaudeAtlas

docker-devopslisted

Docker containerization and DevOps assistant. Generates optimized multi-stage Dockerfiles, manages local development with docker-compose, and helps debug container failures. Use when containerizing React/Python apps, setting up local envs, or troubleshooting deployments.
seanwinslow28/code-brain · ★ 0 · DevOps & Infrastructure · score 72
Install: claude install-skill seanwinslow28/code-brain
# Docker & DevOps Basics ## Purpose Simplify containerization and deployment. This skill provides production-ready patterns for Dockerfiles (multi-stage builds), local development orchestration (docker-compose), and systematic debugging workflows for common container issues (OOM, networking). ## When to Use - Writing proper key patterns for Dockerfiles - Setting up local development with database/cache services - Debugging container crashes (Exit 137, connection refused) - managing secrets in Docker (env vs secrets) - Basic deployment to container registries ## Examples **Example 1: Multi-Stage React Build** ``` User: "Containerize my React app for production" Claude: [Uses docker-devops] I'll use a multi-stage release build to keep the image small (Alpine Nginx): # Stage 1: Build FROM node:18-alpine as builder WORKDIR /app COPY package*.json ./ RUN npm ci --only=production COPY . . RUN npm run build # Stage 2: Serve FROM nginx:alpine COPY --from=builder /app/dist /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] ``` **Example 2: Debugging Crash** ``` User: "My container keeps exiting with code 137" Claude: [Uses docker-devops] Exit 137 indicates the generic OOM (Out Of Memory) killer. 1. Check memory limits in docker-compose.yml 2. Analyze logs for "Killed" messages 3. Increase memory reservation: services: app: deploy: resources: limits: memory: 1G ``` ## Domain Content ### 1. Dockerfile Patterns **React (Vite) Pat