/vibe:docker-advancedfrom vibe
Expert in Docker containerization, Dockerfile best practices, multi-stage builds, networking, volumes, Compose, and production deployment. Use when configuring, deploying, or managing advanced Docker infrastructure.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert Docker specialist with deep knowledge of Dockerfile optimization, multi-stage builds, networking, volumes, Docker Compose, security, production deployment, and performance tuning.
# ❌ Bad - Large base image
FROM node:20
# ✅ Good - Small base image
FROM node:20-alpine
# ✅ Even better - Distroless (when applicable)
FROM node:20-slim
# Use specific tag
FROM node:20.12.0-alpine
# ❌ Bad - Each RUN creates new layer
RUN npm install
RUN npm install express
RUN npm install mongoose
# ✅ Good - Single layer with cache
COPY package*.json ./
RUN npm ci && \
npm cache clean --force
# ✅ Better - Cache source files too
COPY package*.json ./
COPY package-lock.json ./
RUN npm ci --prefer-offline
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Production stage
FROM node:20-alpine AS production
WORKDIR /app
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
ENV NODE_ENV=production
EXPOSE 8080
CMD ["node", "dist/index.js"]
# Run as non-root
FROM node:20-alpine
# Create non-root user
RUN addgroup -g appuser && adduser -D -G appuser appuser
USER appuser
WORKDIR /home/appuser/app
# Don't run as root
# ❌ Bad
USER root
# ✅ Good
USER appuser
# Use specific versions
FROM node:20.12.0-alpine
# Don't use latest
# ❌ Bad
FROM node:latest
# ✅ Good
FROM node:20.12.0-alpine
# Scan for vulnerabilities
FROM node:20-alpine
# Install Trivy or use external scanner
# Or use Docker Bench
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/health || exit 1
# Or use application health check
HEALTHCHECK --interval=30s --timeout=3s \
CMD node healthcheck.js
# docker-compose.yml
version: "3.8"
services:
app:
build: .
ports:
- "8080:8080"
environment:
- NODE_ENV=production
depends_on:
- db
- redis
networks:
- app-network
db:
image: postgres:15-alpine
environment:
POSTGRES_USER: appuser
POSTGRES_PASSWORD: secretpassword
POSTGRES_DB: appdb
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- app-network
redis:
image: redis:7-alpine
networks:
- app-network
volumes:
postgres_data:
networks:
app-network:
driver: bridge
version: "3.8"
services:
app:
image: myapp:1.0.0
restart: unless-stopped
deploy:
replicas: 3
resources:
limits:
cpus: "1.0"
memory: 512M
reservations:
cpus: "0.5"
memory: 256M
update_config:
parallelism: 2
delay: 10s
failure_action: rollback
order: start-first
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 3
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
version: "3.8"
services:
app:
image: myapp:1.0
networks:
- bridge-network
db:
image: postgres:15-alpine
networks:
- bridge-network
networks:
bridge-network:
driver: bridge
version: "3.8"
services:
app:
image: myapp:1.0
network_mode: host
ports:
- "80:80"
version: "3.8"
services:
frontend:
image: myapp-frontend:1.0
networks:
- app-network
backend:
image: myapp-backend:1.0
networks:
- app-network
networks:
app-network:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
version: "3.8"
services:
app:
image: myapp:1.0
volumes:
# Mount local directory
- .:/app
- /var/run/docker.sock:/var/run/docker.sock # Docker-in-Docker
version: "3.8"
services:
db:
image: postgres:15-alpine
volumes:
# Named volume
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
driver: local
version: "3.8"
volumes:
# Local driver (default)
data:
driver: local
# NFS mount
nfs_data:
driver: local
driver_opts:
type: none
o: bind
device: /path/to/nfs/share
# Cloud storage
cloud_data:
driver: rexray/s3
driver_opts:
rexray:
region: us-east-1
accesskey: $AWS_ACCESS_KEY
secretkey: $AWS_SECRET_KEY
bucket: my-bucket
# Create secret
echo "my-password" | docker secret create db_password -
# Use secret in compose
version: '3.8'
services:
db:
image: postgres:15-alpine
secrets:
- db_password
environment:
POSTGRES_PASSWORD_FILE: /run/secrets/db_password
secrets:
db_password:
file: ./db_password.txt
version: '3.8'
services:
app:
image: myapp:1.0
environment:
- DATABASE_URL=postgres://user:${DB_PASSWORD}@db:5432/app
# Or use env file
env_file:
- .env.production
# ❌ Bad - Multiple RUN commands
RUN npm install
RUN npm cache clean
RUN npm run build
# ✅ Good - Combined RUN
RUN npm install && \
npm cache clean --force && \
npm run build
# ✅ Better - Multi-stage
FROM node:20-alpine AS builder
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine AS production
COPY --from=builder /app/dist ./dist
# Cache dependencies
FROM node:20-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci
# Cache source for faster rebuilds
FROM node:20-alpine AS build
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
RUN npm run build
# .dockerignore
node_modules
npm-debug.log
Dockerfile
.git
.gitignore
.env.local
*.md
test/
# Tag image
docker tag myapp:1.0 myregistry.com/myapp:1.0.0
# Push to registry
docker push myregistry.com/myapp:1.0.0
# Push with multiple tags
docker tag myapp:1.0 myregistry.com/myapp:latest
docker push myregistry.com/myapp:latest
apiVersion: apps/v1
kind: Deployment
metadata:
name: myapp
spec:
replicas: 3
selector:
matchLabels:
app: myapp
template:
metadata:
labels:
app: myapp
spec:
containers:
- name: myapp
image: myregistry.com/myapp:1.0.0
ports:
- containerPort: 8080
env:
- name: DATABASE_URL
valueFrom:
secretKeyRef:
name: db-secret
key: url
resources:
requests:
memory: "256Mi"
cpu: "250m"
limits:
memory: "512Mi"
cpu: "500m"
# Check logs
docker logs myapp
# Check container status
docker ps -a
# Inspect container
docker inspect myapp
# Common issues:
# - Port already in use
# - Environment variable missing
# - Health check failing
# - Resource limits too low
# Check network
docker network ls
# Inspect network
docker network inspect app-network
# Test connectivity
docker run --rm --network app-network alpine ping db
# Check volumes
docker volume ls
# Inspect volume
docker volume inspect postgres_data
# Check permissions
docker run --rm -v postgres_data:/data alpine ls -la /data
# Scan with Trivy
trivy image myapp:1.0.0
# Scan with Snyk
snyk container test myapp:1.0.0 --file-type=docker
# Scan with Docker Bench
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
aquasec/docker-bench latest
# Read-only filesystem
FROM node:20-alpine
# Remove shell
RUN apk del --no-cache bash
# Drop capabilities
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job