Skip to content
rknall avatar

Docker Configuration Validator

Validates Dockerfiles and Docker Compose files for syntax, security, multi-stage builds, and modern Compose rules.

CCM score
41 of 100
skills.sh installs
356
GitHub stars
94
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers Dockerfile checks for pinned base images, non-root USER, layer caching, and HEALTHCHECK, plus Compose checks for obsolete version fields and resource limits
  • Runs hadolint and dclint when installed, falling back to built-in manual checks such as grep-based FROM and COPY --from counts
  • Classifies findings as CRITICAL, HIGH, MEDIUM, or LOW, with CRITICAL covering root users, :latest tags, exposed secrets, and invalid syntax
  • Designed for production readiness audits and CI/CD validation scripts covering multi-stage Node.js, Python, and Go builds

Install

$ npx -y skills add rknall/claude-skills --skill 'Docker Configuration Validator' -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Docker Configuration Validator

This skill provides comprehensive validation for Dockerfiles and Docker Compose files, ensuring compliance with best practices, security standards, and modern syntax requirements.

When to Use This Skill

Activate this skill when the user requests:

  • Validate Dockerfiles or Docker Compose files
  • Review Docker configurations for best practices
  • Check for Docker security issues
  • Verify multi-stage build implementation
  • Audit Docker setup for production readiness
  • Ensure modern Docker Compose syntax compliance
  • Fix Docker configuration issues
  • Create validation scripts or CI/CD integration

Core Workflow

Phase 1: Initial Assessment

When a user requests Docker validation, start by understanding the scope:

  1. Identify What to Validate

    • Single Dockerfile or multiple?
    • Docker Compose file(s)?
    • Entire project directory?
    • Specific concerns or focus areas?
    • Production vs development environment?
  2. Understand Requirements

    • Security compliance level needed?
    • Multi-stage build requirement?
    • Performance constraints?
    • CI/CD integration needed?
    • Automated validation script desired?

Details

Repository
github.com/rknall/claude-skills
Categories
DevOps & Cloud, Security
First seen
Jun 3, 2026

Questions

What does the Docker Configuration Validator skill check?

Docker Configuration Validator checks Dockerfiles and Docker Compose files for syntax, security, multi-stage build structure and modern Compose requirements. It also flags issues such as running as root, unpinned image tags and missing HEALTHCHECK, and classifies them by severity.

How do I install the Docker Configuration Validator skill?

Run npx -y skills add rknall/claude-skills --skill 'Docker Configuration Validator' -y in a project to install it. Once installed, Docker Configuration Validator lets the agent validate Dockerfiles and Compose files and generate validation scripts and CI/CD integrations.

Which tools does Docker Configuration Validator use?

Docker Configuration Validator uses Hadolint for Dockerfile linting and DCLint for Docker Compose linting, and it falls back to manual checks when they are missing. It also uses the Docker CLI for built-in Compose validation with docker compose config.

Does Docker Configuration Validator flag the obsolete version field in Compose files?

Yes, Docker Configuration Validator checks for the obsolete version field in Compose files, since modern Docker Compose v2.27.0 and later do not use it. It reports the field as an error so the line can be removed.

More from rknall/claude-skills

All 9

Similar to Docker Configuration Validator

More DevOps & Cloud