Automic VaultAutomic Vault

brew

Install dockerfmt with Homebrew, Nix

Dockerfile format and parser. a modern dockfmt. Version 0.5.4 via Homebrew; verified 2026-06-28.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install dockerfmt

local Homebrew formula metadata

Linux

Nixverified · 92%
nix profile install nixpkgs#dockerfmt

nixpkgs package indexes · pkgs/by-name/do/dockerfmt/package.nix · source: api.github.com

overview

Package summary

Dockerfile format and parser. a modern dockfmt

Commands and aliases

  • dockerfmt

history

Project history and usage

dockerfmt is a young, opinionated Dockerfile formatter that combines Dockerfile parsing with shell-command formatting for `RUN` instructions.

Project history

The reteps/dockerfmt repository was created in April 2025 and published its initial alpha release the next day. The README presents it as a modern successor to Jessie Frazelle's earlier `dockfmt`, built on the Moby BuildKit parser and using `shfmt` for shell fragments inside Dockerfile `RUN` steps.

The project quickly moved through 0.2.x releases in April 2025 and reached 0.5.4 in June 2026. The README's feature set includes whitespace normalization, inline-comment preservation, legacy `ENV key value` conversion, deprecated `MAINTAINER` conversion to `LABEL`, heredoc support, stdin/file operation, pre-commit support, JS/WASM bindings, and a Docker image for CI.

Adoption history

Because dockerfmt is new, public adoption evidence is still thin. Its package-manager footprint is nevertheless real: Homebrew reported stable version 0.5.4, 69 installs in the previous 30 days, and 548 installs in the previous year as of June 30, 2026.

Its adoption story is also a lineage story: it exists because Dockerfile formatting remained useful after `dockfmt`, while modern BuildKit syntax, shell formatting expectations, pre-commit workflows, and CI images needed a fresher implementation.

How it is used

Users run `dockerfmt Dockerfile` to print formatted output, `dockerfmt -w Dockerfile` to rewrite files, `dockerfmt -c Dockerfile` to check formatting, or pipe Dockerfiles through stdin. It can read EditorConfig properties such as `indent_size` and `insert_final_newline` when formatting files by path.

Why package nerds care

dockerfmt is package-nerd significant because formatters become part of project policy. By exposing a Go binary, Docker image, pre-commit hook, and JS/WASM bindings, it tries to make Dockerfile formatting usable from local editors, CI, JavaScript tooling, and ordinary package managers.

Timeline

  • 2025: Repository created and 0.1.0-alpha initial release published.
  • 2025: 0.2.x releases added JavaScript release work and bug fixes.
  • 2026: 0.5.4 released and Homebrew formula reports stable 0.5.4.

Related projects

  • dockerfmt is directly related to `dockfmt`, Moby BuildKit's Dockerfile parser, and `shfmt`.
  • It also fits into pre-commit and CI formatting workflows, similar to language-specific formatters such as gofmt and prettier, but for Dockerfiles.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
dockerfmtcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.5.4
manager updated2026-06-28
local dataok
upstreamcurrent
latest detectedv0.5.4

https://github.com/reteps/dockerfmt

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:dockerfmt
Version0.5.4
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/dockerfmt
Homepagehttps://github.com/reteps/dockerfmt
Repositoryhttps://github.com/reteps/dockerfmt
Upstream docshttps://github.com/reteps/dockerfmt#readme
LicenseMIT
Source archivehttps://github.com/reteps/dockerfmt/archive/refs/tags/v0.5.4.tar.gz
Last updated2026-06-28T00:04:23Z
Pulseupdated
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

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

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Nix95%

dockerfmt

nix profile install nixpkgs#dockerfmt
  • normalized package name match
  • Matched by: Dockerfmt
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/do/dockerfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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