containerization
FreeNo executable scriptsNot checkedDocker and Kubernetes workflows for containerization. Use for building containers, orchestration, and cloud-native deployments.
by Sir-chawakorn★ 32 GitHub starsAbout this skill
🐳 Containerization Skill
Docker Basics
Dockerfile
# Multi-stage build
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:20-alpine AS runner
WORKDIR /app
ENV NODE_ENV=production
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/node_modules ./node_modules
EXPOSE 3000
CMD ["node", "dist/index.js"]
docker-compose.yml
version: '3.8'
services:
web:
build: .
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://db:5432/app
depends_on:
- db
db:
image: postgres:15-alpine
environment:
POSTGRES_PASSWORD: secret
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
postgres_data:
Docker Commands
# Build
docker build -t myapp:latest .
# Run
docker run -d -p 3000:3000 --name myapp myapp:latest
# Compose
docker-compose up -d
docker-compose down
# Clean up
docker system prune -a
Kubernetes Basics
Deployment
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: myapp:latest
ports:
- containerPort: 3000
resources:
limits:
memory: "256Mi"
cpu: "500m"
Service
apiVersion: v1
kind: Service
metadata:
name: myapp-service
spec:
selector:
app: myapp
ports:
- port: 80
targetPort: 3000
type: LoadBalancer
K8s Commands
# Apply configs
kubectl apply -f deployment.yaml
# Get resources
kubectl get pods
kubectl get services
# Logs & Debug
kubectl logs pod-name
kubectl exec -it pod-name -- /bin/sh
# Scale
kubectl scale deployment myapp --replicas=5
Best Practices
| Practice | Description |
|---|---|
| .dockerignore | Exclude node_modules, .git |
| Multi-stage | Smaller production images |
| Non-root | Run as non-root user |
| Health checks | Add HEALTHCHECK directive |
| Resource limits | Set CPU/memory limits |
Checklist
- Create Dockerfile (multi-stage)
- Add .dockerignore
- Set up docker-compose for dev
- Configure health checks
- Create K8s manifests
- Set resource limits
Install containerization in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the containerization skill do?
Docker and Kubernetes workflows for containerization. Use for building containers, orchestration, and cloud-native deployments.
How do I install the containerization skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the containerization skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
ci-review
The scan that the plugin's GitHub Action runs.
by Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
by GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
by GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
by GitHub