docker-ops
Dockerfile best practices, multi-stage builds, docker-compose, container networking, volume management, and image optimization.
npx skills add vibeeval/vibecosystem --skill docker-ops --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Docker Operations Practical patterns for building, running, and maintaining containers in production. ## Multi-Stage Builds Minimize final image size by separating build-time dependencies from runtime. ```dockerfile # Stage 1: Builder FROM node:20-alpine AS builder WORKDIR /app # Copy dependency manifests first (layer cache) COPY package*.json ./ RUN npm ci --only=production COPY tsconfig.json ./ COPY src/ ./src/ RUN npm run build # Stage 2: Runtime (no devDependencies, no source files) FROM node:20-alpine AS runtime WORKDIR /app # Security: run as non-root RUN addgroup -S appgroup && adduser -S appuser -G appgroup COPY --from=builder /app/node_modules ./node_modules COPY --from=builder /app/dist ./dist USER appuser EXPOSE 3000 CMD ["node", "dist/index.js"] ``` ```dockerfile # Python multi-stage example FROM python:3.12-slim AS builder WORKDIR /app RUN pip install --upgrade pip COPY requirements.txt . RUN pip install --prefix=/install -r requirements.txt FROM python:3.12-slim AS runtime WORKDIR /app COPY --from=builder /install /usr/local COPY src/ ./src/ RUN useradd -r -s /bin/false appuser USER appuser CMD ["python", "-m", "src.main"] ``` ## Docker Compose for Multi-Service Env
- Multi-Stage Builds
- Docker Compose for Multi-Service Environments
- Container Networking
- Volume Management
- Health Checks
- .dockerignore Best Practices
- Image Layer Caching Optimization
- Environment Variable Management
- Docker Secrets vs Env Vars
- Container Resource Limits
- Image Scanning for Vulnerabilities
- Debugging Containers
- PID 1 Problem and Signal Handling (tini)
- Common Pitfalls
Bridge network (default, same host) docker network create --driver bridge my-network docker run --network my-network --name service-a my-image Containers on same bridge network communicate by name curl http://service-a:3000/health Host network (container shares host network stack, Linux only) docker run --network host my-image Overlay network (multi-host, Docker Swarm or manual) docker network create --driver overlay --attachable my-overlay Volume lifecycle commands
What does the docker-ops skill do?
Dockerfile best practices, multi-stage builds, docker-compose, container networking, volume management, and image optimization.
How do I install it?
Run `npx skills add vibeeval/vibecosystem --skill docker-ops --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From vibeeval/vibecosystem, a repository with 521 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
