Hadolint

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

javimosch Updated 57 repo stars

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 commit 1a6da6cbd7

Frequently asked questions

npx get-skill add javimosch/hadolint