# Installer dockerfmt avec Homebrew, Nix

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de dockerfmt pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:dockerfmt
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install dockerfmt
```

  Preuve: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#dockerfmt
```

  Preuve: nixpkgs package indexes: pkgs/by-name/do/dockerfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:dockerfmt
- **Gestionnaire de paquets:** Homebrew
- **Version:** 0.5.4
- **Résumé source:** Dockerfile format and parser. a modern dockfmt
- **Page d'accueil:** <https://github.com/reteps/dockerfmt>
- **Dépôt:** <https://github.com/reteps/dockerfmt>
- **Dernière mise à jour:** 2026-07-28T14:10:41+02:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- dockerfmt (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 0.5.4
## Historique du projet et usages

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

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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.

### Sources

- <https://github.com/reteps/dockerfmt#readme>
- <https://api.github.com/repos/reteps/dockerfmt>
- <https://github.com/reteps/dockerfmt/releases/tag/0.1.0-alpha>
- <https://github.com/reteps/dockerfmt/releases/tag/v0.5.4>
- <https://formulae.brew.sh/api/formula/dockerfmt.json>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Nix - dockerfmt: normalized package name match | nixpkgs package indexes: pkgs/by-name/do/dockerfmt/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/dockerfmt.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dockerfmt.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
