Agent skill
docker
Docker container building, management, and optimization. Activate for dockerfile, docker-compose, images, containers, multi-stage builds, and container debugging.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/docker-lobbi-docs-claude
SKILL.md
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 <Dockerfile> 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
```
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?