Your Dockerfiles are probably wrong. Docker Doctor finds out why.
Docker Doctor is an opinionated static analysis tool for Dockerfile and Docker Compose files. It scans your project, runs 21+ rules across security, performance, best practices, Compose, and image size — then gives you a health score and fix guidance.
Works with any project that uses Docker.
npx @docker-doctor/cli@latestnpx @docker-doctor/cli@latest rules list
npx @docker-doctor/cli@latest rules explain docker-doctor/no-root-userDocker Doctor walks you through setting up a GitHub Actions workflow after your first scan:
npx @docker-doctor/cli@latest// docker-doctor.config.ts
export default {
rules: {
"docker-doctor/no-root-user": "error",
},
};import { discoverProject, toJsonReport } from "@docker-doctor/cli";
import type { Diagnostic } from "@docker-doctor/cli";MIT and Issues welcome!