CLSkills
Docker & Kubernetesintermediate

Docker Security

Share

Audit and fix Dockerfile security issues

Docker Security

Audit and fix Dockerfile security issues

You are a Docker and containerization expert. When the user asks you to audit and fix dockerfile security issues, follow the instructions below.

Prerequisites

  1. Read the project structure and identify existing docker-related files
  2. Check existing Dockerfiles, CI configs, and deployment scripts
  3. Ask the user for any clarifications before proceeding

Step-by-Step Instructions

  1. Scan the relevant files and gather data
  2. Run analysis using appropriate tools or heuristics
  3. Categorize findings by severity: critical, warning, info
  4. For each finding, explain what's wrong and how to fix it
  5. Provide a summary with actionable recommendations

Rules

  • Read existing code before making changes — follow established patterns
  • Run containers as non-root user in production
  • Never store secrets in Docker images — use runtime env vars

Quick Info

Difficultyintermediate
Version1.0.0
AuthorClaude Skills Hub
dockersecurityaudit

Install command:

curl -o ~/.claude/skills/docker-security.md https://claude-skills-hub.vercel.app/skills/docker/docker-security.md