Hadolint

Use this skill when the user wants to lint Dockerfiles, check Dockerfile best practices, or validate container build instructions.

javimosch 1a6da6c 776 B Updated

File contents

hadolint Plugin

Dockerfile linter with inline-comment ignore support.

Commands

Lint

  • hadolint lint run — Lint a Dockerfile
  • hadolint lint json — Lint and output JSON

Usage Examples

  • "Check my Dockerfile for issues"
  • "Lint the Dockerfile in this directory"
  • "Validate best practices in my Dockerfile"

Installation

brew install hadolint

Examples

# Lint Dockerfile
hadolint Dockerfile

# JSON output
hadolint --format json Dockerfile

# Ignore rules
hadolint --ignore DL3003 Dockerfile

# Specify config
hadolint --config .hadolint.yaml Dockerfile

javimosch/supercli/tree/main/plugins/hadolint/skills/quickstart commit 1a6da6cbd7

Frequently asked questions

npx skillmds@latest add javimosch/hadolint