docker-doctor

Audit Dockerfiles and Compose manifests for security and reliability issues.

5|Updated Feb 21, 2026
One-click install
npx skills add https://github.com/ragnarok22/agent-skills --skill docker-doctor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-doctor
Source: https://github.com/ragnarok22/agent-skills/tree/main/skills/docker-doctor
Command: npx skills add https://github.com/ragnarok22/agent-skills --skill docker-doctor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and agents (resource) components.

What problem does it solve?

This Skill helps ensure your Docker configurations are secure, reliable, and optimized by automatically auditing Dockerfiles and Docker Compose manifests.

Core Features & Use Cases

  • Security Audits: Identifies common security vulnerabilities like privileged containers, exposed Docker sockets, and mutable base images.
  • Reliability Checks: Verifies configurations for missing restart policies, healthchecks, and build context issues.
  • Optimization Opportunities: Flags potential performance improvements such as missing cache cleanup and opportunities for multi-stage builds.
  • Use Case: Before deploying a new microservice, run this Skill to catch critical security misconfigurations in its Dockerfile and docker-compose.yml file, preventing potential breaches or runtime failures.

Quick Start

Use the docker-doctor skill to verify the Dockerfile in the current directory.

Frequently Asked Questions about docker-doctor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit a Dockerfile for security vulnerabilities before deployment?

You can audit a Dockerfile for security vulnerabilities by running automated checks that identify privileged containers, exposed Docker sockets, and mutable base images to produce a prioritized remediation list.

What are common Docker Compose reliability risks I should check for?

Common Docker Compose reliability risks include missing restart policies, absent healthchecks, and build context issues, which can be detected by validating the manifest configuration.

Can I use hadolint to optimize Dockerfile build performance?

Yes, you can use hadolint alongside configuration validation to flag optimization opportunities like missing cache cleanup and multi-stage build potential to improve Dockerfile build performance.

Does docker compose config work for pre-deploy validation of manifests?

Yes, running docker compose config -q works for pre-deploy validation by silently checking manifest syntax and configuration correctness to catch failures before runtime.

How do I get a quantitative health score for my container configurations?

You get a quantitative health score for container configurations by executing deterministic audit scripts that evaluate security, reliability, and optimization rules to generate a 0-100 rating.

What is the best way to harden Docker configurations against potential breaches?

The best way to harden Docker configurations against breaches is to perform a comprehensive audit that identifies security misconfigurations and provides prioritized remediation actions for container hardening.