Automic VaultAutomic Vault

brew

使用 Homebrew, dnf, MacPorts, Nix, scoop, winget 安装 hadolint

查看 hadolint 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install hadolint

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install hadolint

MacPorts ports tree · devel/hadolint/Portfile · 来源: api.github.com

Windows

Scoop已验证 · 92%
scoop install main/hadolint

Scoop official bucket manifest trees · bucket/hadolint.json · 来源: api.github.com

Windows Package Manager已验证 · 92%
winget install --id hadolint.hadolint -e

Windows Package Manager source index · hadolint.hadolint · 来源: cdn.winget.microsoft.com

概览

软件包摘要

Smarter Dockerfile linter to validate best practices

命令和别名

  • hadolint

历史

项目历史与用法

Hadolint is a Haskell Dockerfile linter that parses Dockerfiles into an abstract syntax tree, applies Dockerfile best-practice rules, and delegates shell snippets in RUN instructions to ShellCheck. In package-manager culture it is a compact, CI-friendly static analyzer for container builds, often installed locally even when the same tool is also available as a container image.

项目历史

The first GitHub release in April 2016 described Hadolint as a smarter Dockerfile linter that builds on ShellCheck. Early releases added a clearer command-line interface, multi-file support, Homebrew compatibility, YAML-based ignored-rule configuration, and integration documentation for editors and CI systems.

The project matured by expanding both Dockerfile syntax support and output formats. Release notes record JSON, CodeClimate, Checkstyle XML, Codacy, SonarQube, SARIF, GNU-style, and other formatter work across the 1.x and 2.x lines. Configuration also grew from ignored rules into severity thresholds, trusted registries, label schemas, strict-label behavior, and inline ignore pragmas.

Hadolint 2.0 in 2021 was described by the project as a major internal refactor focused on maintainability and efficiency, with new rule families around LABEL, COPY, useradd, HEALTHCHECK, and package-manager usage. Later releases continued tracking Dockerfile syntax, shell behavior, distribution quirks, and packaging targets such as static binaries and ARM64 builds.

采用历史

The README documents several installation paths: prebuilt binaries for macOS, Windows, and Linux, Homebrew on macOS, Scoop on Windows, Nix, Docker Hub images, GHCR images, and source builds with Haskell tooling. That breadth is why Hadolint appears in local developer environments, pre-commit hooks, CI jobs, editor integrations, and containerized lint workflows.

Hadolint's adoption is tied to a specific DevOps habit: treating Dockerfiles like source code with repeatable lint rules. Its GitHub Action companion and integration documentation reinforce the tool's role in pull-request checks, while the CLI remains simple enough for one-off use as `hadolint Dockerfile`.

使用方式

Typical package usage is direct CLI linting of one or more Dockerfiles, optionally selecting output formats for CI annotations or machine-readable reports. Users can override severities, ignore specific rule codes, require label schemas, reject untrusted registries, and set a failure threshold that decides when the process exits unsuccessfully.

Hadolint looks for YAML configuration in project and user config locations, using the first file found. This makes the Homebrew package useful for teams that want a repository-local `.hadolint.yaml` while still allowing individual defaults under XDG or home-directory paths.

为什么软件包爱好者会关心

Hadolint is package-nerd catnip because it sits at the intersection of Haskell distribution, static binaries, Docker images, shell linting, CI formats, and config-file discovery. It gives a local package manager a cleaner path than `docker run` when a workflow needs fast startup, editor integration, or offline linting.

It also demonstrates how a single-purpose CLI can become infrastructure glue. Package maintainers care about its static binary story, cross-platform release assets, and transitive ShellCheck behavior because those details shape whether Dockerfile linting is painless inside larger build pipelines.

时间线

  • 2016: v1.0 release introduced the Dockerfile linter built on ShellCheck.
  • 2016: v1.2 and v1.2.1 added multi-Dockerfile support and Homebrew compatibility work.
  • 2017: v1.2.6 added YAML configuration for ignored rules.
  • 2018: v1.5.0 added JSON, CodeClimate JSON, and Checkstyle XML output formats.
  • 2018: v1.10.0 added trusted-registry checks for FROM images.
  • 2018: v1.13.0 exposed Hadolint for use as a library.
  • 2021: v2.0.0 delivered a major internal refactor and added several Dockerfile rule families.
  • 2022: v2.10.0 added ARM64 binary support through a new release workflow.
  • 2025: v2.14.0 continued rule and package-manager compatibility updates.

Related projects

  • ShellCheck: shell-script analyzer used by Hadolint for RUN instruction shell code.
  • language-docker: Dockerfile parser used by Hadolint in its Haskell implementation.
  • hadolint-action: GitHub Action wrapper for running Hadolint in workflows.
  • Docker and OCI build tooling: the file format and build workflows Hadolint checks.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
$PWD/.hadolint.yaml$XDG_CONFIG_HOME/hadolint.yaml~/.config/hadolint.yaml~/.hadolint/hadolint.yaml~/hadolint/config.yaml~/.hadolint.yaml

可执行文件

已安装的可执行文件

命令类型暴露范围备注
hadolintcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.14.0
管理器更新时间2026-07-22
本地数据OK
上游当前
检测到的最新版本v2.14.0

https://github.com/hadolint/hadolint

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:hadolint
版本2.14.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/hadolint
主页https://github.com/hadolint/hadolint
仓库https://github.com/hadolint/hadolint
上游文档https://github.com/hadolint/hadolint#readme
许可证GPL-3.0-only
源码归档https://github.com/hadolint/hadolint/archive/refs/tags/v2.14.0.tar.gz
最后更新2026-07-22T06:06:28Z
Pulseupdated
依赖gmp
构建依赖cabal-install, ghc
macOS 提供的库libffi, xz
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namehadolint
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

hadolint

nix profile install nixpkgs#hadolint
  • normalized package name match
  • 匹配方式:Hadolint
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: hadolint from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
dnf95%

ghc-commutative-semigroups 0.2.0.2-24.fc45

Haskell commutative-semigroups library

https://hackage.haskell.org/package/commutative-semigroups

sudo dnf install ghc-commutative-semigroups
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 14 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-commutative-semigroups from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-commutative-semigroups-devel 0.2.0.2-24.fc45

Haskell commutative-semigroups library development files

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-commutative-semigroups-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-commutative-semigroups-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-commutative-semigroups-doc 0.2.0.2-24.fc45

Haskell commutative-semigroups library documentation

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-commutative-semigroups-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: hadolint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-commutative-semigroups-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-commutative-semigroups-prof 0.2.0.2-24.fc45

Haskell commutative-semigroups profiling library

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-commutative-semigroups-prof
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-commutative-semigroups-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hadolint 2.14.0-24.fc45

Haskell hadolint library

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-hadolint
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 32 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hadolint from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hadolint-devel 2.14.0-24.fc45

Haskell hadolint library development files

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-hadolint-devel
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hadolint-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hadolint-doc 2.14.0-24.fc45

Haskell hadolint library documentation

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-hadolint-doc
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: hadolint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hadolint-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-hadolint-prof 2.14.0-24.fc45

Haskell hadolint profiling library

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-hadolint-prof
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-hadolint-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-monoid-subclasses 1.2.6.1-24.fc45

Haskell monoid-subclasses library

https://hackage.haskell.org/package/monoid-subclasses

sudo dnf install ghc-monoid-subclasses
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 23 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-monoid-subclasses from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-monoid-subclasses-devel 1.2.6.1-24.fc45

Haskell monoid-subclasses library development files

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-monoid-subclasses-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-monoid-subclasses-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-monoid-subclasses-doc 1.2.6.1-24.fc45

Haskell monoid-subclasses library documentation

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-monoid-subclasses-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: hadolint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-monoid-subclasses-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-monoid-subclasses-prof 1.2.6.1-24.fc45

Haskell monoid-subclasses profiling library

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-monoid-subclasses-prof
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 2 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-monoid-subclasses-prof from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-primes 0.2.1.0-24.fc45

Haskell primes library

https://hackage.haskell.org/package/primes

sudo dnf install ghc-primes
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 8 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-primes from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-primes-devel 0.2.1.0-24.fc45

Haskell primes library development files

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-primes-devel
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: hadolint
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-primes-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ghc-primes-doc 0.2.1.0-24.fc45

Haskell primes library documentation

https://hackage.haskell.org/package/hadolint

sudo dnf install ghc-primes-doc
  • License: BSD-3-Clause
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: hadolint
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Hadolint
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ghc-primes-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment