docker
Docker Skill
Provides comprehensive Docker container building and management capabilities for the Golden Armada AI Agent Fleet Platform.
When to Use This Skill
Activate this skill when working with:
- Building Docker images
- Writing Dockerfiles
- Container management
- Docker Compose configurations
- Multi-platform builds
- Container optimization
Quick Reference
Build Commands
```bash
Build image
docker build -t : -f docker build -t golden-armada/claude-agent:latest -f deployment/docker/claude/Dockerfile .
Multi-platform build
docker buildx build --platform linux/amd64,linux/arm64 -t : .
Build with args
docker build --build-arg VERSION=1.0.0 -t : . ```
Run Commands
```bash
Run container
docker run -d -p 8080:8080 --name agent golden-armada/claude-agent:latest
Run with environment
docker run -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY golden-armada/claude-agent:latest
Run interactively
docker run -it --rm golden-armada/claude-agent:latest /bin/sh
Run with volume
docker run -v $(pwd):/app golden-armada/claude-agent:latest ```
Management
```bash
List
docker ps -a docker images
Cleanup
docker system prune -f docker image prune -a -f docker container prune -f
Logs
docker logs --tail=100 -f
Exec
docker exec -it /bin/sh ```
Dockerfile Best Practices
```dockerfile
1. Use specific base image
FROM python:3.11-slim
2. Set working directory
WORKDIR /app
3. Copy requirements first (layer caching)
COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt
4. Copy application
COPY . .
5. Create non-root user
RUN useradd -m appuser && chown -R appuser:appuser /app USER appuser
6. Expose port
EXPOSE 8080
7. Health check
HEALTHCHECK --interval=30s --timeout=3s
CMD curl -f http://localhost:8080/health || exit 1
8. Define entrypoint
CMD ["gunicorn", "-b", "0.0.0.0:8080", "agent:app"] ```
Multi-Stage Build Example
```dockerfile
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 WORKDIR /app COPY --from=builder /app/dist ./dist COPY --from=builder /app/node_modules ./node_modules USER node EXPOSE 3000 CMD ["node", "dist/index.js"] ```
Golden Armada Docker Commands
```bash
Build Claude agent
docker build -f deployment/docker/claude/Dockerfile
-t golden-armada/claude-agent:latest
deployment/docker/claude/
Build orchestrator
docker build -f deployment/docker/orchestrator/Dockerfile
-t golden-armada/orchestrator:latest
deployment/docker/orchestrator/
Run locally
docker run -p 8080:8080
-e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY
golden-armada/claude-agent:latest
```
More from lobbi-docs/claude
vision-multimodal
Vision and multimodal capabilities for Claude including image analysis, PDF processing, and document understanding. Activate for image input, base64 encoding, multiple images, and visual analysis.
242design-system
Apply and manage the AI-powered design system with 50+ curated styles
126complex-reasoning
Multi-step reasoning patterns and frameworks for systematic problem solving. Activate for Chain-of-Thought, Tree-of-Thought, hypothesis-driven debugging, and structured analytical approaches that leverage extended thinking.
105gcp
Google Cloud Platform services including GKE, Cloud Run, Cloud Storage, BigQuery, and Pub/Sub. Activate for GCP infrastructure, Google Cloud deployment, and GCP integration.
73kanban
Kanban methodology including boards, WIP limits, flow metrics, and continuous delivery. Activate for Kanban boards, workflow visualization, and lean project management.
62debugging
Debugging techniques for Python, JavaScript, and distributed systems. Activate for troubleshooting, error analysis, log investigation, and performance debugging. Includes extended thinking integration for complex debugging scenarios.
59