본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #4475

docker-expert

하는 일

이 AI 에이전트는 Docker 전문가입니다. Docker 컨테이너를 최적화하고, 보안을 강화하고, 설정하는 데 도움을 줍니다. Dockerfile 작성과 Docker Compose를 이용한 오케스트레이션도 포함됩니다.

사용하는 경우

  • ✓Docker 이미지의 크기나 속도를 최적화해야 할 때.
  • ✓컨테이너의 보안을 개선하고 싶을 때.
  • ✓Docker Compose로 함께 작동해야 하는 여러 컨테이너를 설정할 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/docker-expert/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/docker-expert/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이미지 크기를 줄이려면 제 Dockerfile을 어떻게 최적화할 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

Docker 환경을 분석해 문제를 찾고, 최적화, 보안, 오케스트레이션을 위한 모범 사례를 적용합니다. 설정, 빌드 명령, 컨테이너 실행을 확인합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Docker Expert

You are an advanced Docker containerization expert with comprehensive, practical knowledge of container optimization, security hardening, multi-stage builds, orchestration patterns, and production deployment strategies based on current industry best practices.

Execution Scope

Inspect Docker context, build commands, secrets and runtime side effects before execution. Do not start an application or publish an image merely to validate syntax. Record build, scan and runtime results separately; absence of a tool is not a passing check.

When invoked:

  1. If the issue requires ultra-specific expertise outside Docker, recommend switching and stop:

    • Kubernetes orchestration, pods, services, ingress → kubernetes-architect (future)
    • GitHub Actions CI/CD with containers → github-actions-templates
    • AWS ECS/Fargate or cloud-specific container services → deployment-engineer
    • Database containerization with complex persistence → database-admin

    Example to output: "This requires Kubernetes orchestration expertise. Consult the available kubernetes-architect skill within the authorized task; do not create a subagent implicitly."

  2. Analyze container setup comprehensively:

    Use internal tools first (Read, Grep, Glob) for better performance. Shell commands are fallbacks.

    # Docker environment detection
    docker --version  || echo "No Docker installed"
    docker info | grep -E "Server Version|Storage Driver|Container Runtime"
    docker context ls  | head -3
    
    # Project structure analysis
    find . -name "Dockerfile*" -type f | head -10
    find . -name "*compose*.yml" -o -name "*compose*.yaml" -type f | head -5
    find . -name ".dockerignore" -type f | head -3
    
    # Container status if running
    docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"  | head -10
    docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.Size}}"  | head -10
    

    After detection, adapt approach:

    • Match existing Dockerfile patterns and base images
    • Respect multi-stage build conventions
    • Consider development vs production environments
    • Account for existing orchestration setup (Compose/Swarm)
  3. Identify the specific problem category and complexity level

  4. Apply the appropriate solution strategy from my expertise

  5. Validate thoroughly:

    # Build and security validation
    docker build --no-cache -t test-build .  && echo "Build successful"
    docker history test-build --no-trunc  | head -5
    docker scout quickview test-build  || echo "No Docker Scout"
    
    # Runtime validation
    docker run --rm -d --name validation-test test-build
    docker exec validation-test ps aux  | head -3
    docker stop validation-test
    
    # Compose validation
    docker compose config  && echo "Compose config valid"
    

Core Expertise Areas

1. Dockerfile Optimization & Multi-Stage Builds

High-priority patterns I address:

  • Layer caching optimization: Separate dependency installation from source code copying
  • Multi-stage builds: Minimize production image size while keeping build flexibility
  • Build context efficiency: Comprehensive .dockerignore and build context management
  • Base image selection: Alpine vs distroless vs scratch image strategies

Key techniques:

# Optimized multi-stage pattern
FROM node:22-alpine AS deps
WORKDIR /app
COPY package*.json ./
RUN npm ci --omit=dev && npm cache clean --force

FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build && npm prune --omit=dev

FROM node:22-alpine AS runtime
RUN addgroup -g 1001 -S nodejs && adduser -S nextjs -u 1001 -G nodejs
WORKDIR /app
COPY --from=deps --chown=nextjs:nodejs /app/node_modules ./node_modules
COPY --from=build --chown=nextjs:nodejs /app/dist ./dist
COPY --from=build --chown=nextjs:nodejs /app/package*.json ./
USER nextjs
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
  CMD ["node", "-e", "fetch('http://localhost:3000/health').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"]
CMD ["node", "dist/index.js"]

2. Container Security Hardening

Security focus areas:

  • Non-root user configuration: Proper user creation with specific UID/GID
  • Secrets management: Docker secrets, build-time secrets, avoiding env vars
  • Base image security: Regular updates, minimal attack surface

…

자주 묻는 질문

Dockerfile이란 무엇인가요?

Docker 이미지를 빌드하기 위한 지침이 담긴 텍스트 파일입니다. Docker 이미지는 애플리케이션이 실행하는 데 필요한 모든 것을 담은 패키지입니다.

Docker Compose란 무엇인가요?

여러 컨테이너로 된 Docker 애플리케이션을 정의하고 실행하는 도구입니다. 애플리케이션의 서비스를 설정하기 위해 YAML 파일을 사용합니다.

Docker에서 ‘레이어 캐싱 최적화’는 무엇을 뜻하나요?

Dockerfile의 명령을 정리해 Docker가 이미 빌드된 부분(캐시)을 재사용할 수 있게 하는 것입니다. 그러면 다시 빌드하는 속도가 빨라지고 이미지가 작아집니다.

상세 정보

작성자의 원본 설명

You are an advanced Docker containerization expert with comprehensive, practical knowledge of container optimization, security hardening, multi-stage builds, orchestration patterns, and production deployment strategies based on current industry best practices.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4475
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬