Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>hadolint2New to Visual Studio Code? Get it now.
hadolint2

hadolint2

gmolveau

| (0) | Free
a hadolint dockerfile linter vscode extension
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

hadolint vscode extension

Integrate hadolint, the Dockerfile linter, into Visual Studio Code. Dockerfiles are linted as you type and violations are surfaced inline and in the Problems panel.

Features

  • Lints any file recognised by VS Code as a Dockerfile language.
  • Lints on open, on save, and while typing (debounced) — including unsaved buffer contents, which are streamed to hadolint via stdin.
  • Maps hadolint levels to VS Code severities: error → Error, warning → Warning, info → Information, style → Hint.
  • Rule codes (DL#### and ShellCheck SC####) link straight to their online documentation.
  • Auto-discovers .hadolint.yaml / .hadolint.yml in the workspace folder.

Requirements

You must have the hadolint executable installed and on your PATH, or point the extension at it via the hadolint.hadolintPath setting.

https://github.com/hadolint/hadolint#install

Extension settings

Setting Default Description
hadolint.hadolintPath "hadolint" Path to the hadolint executable.
hadolint.configFile "" Path to a hadolint config file (-c). Empty = auto-discover.
hadolint.ignore [] Rule codes to ignore, e.g. ["DL3006", "SC2086"] (--ignore).
hadolint.trustedRegistries [] Registries allowed in FROM, e.g. ["docker.io"] (--trusted-registry).

Commands

  • hadolint: Lint the active Dockerfile — re-lint the current editor on demand.

Development

pnpm install
pnpm run compile   # or: pnpm run watch
pnpm run test      # compiles, lints, and runs the extension test suite

Press F5 in VS Code to launch an Extension Development Host with the extension loaded.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft