dockerfmt
« Back to VersTracker
Description:
Dockerfile format and parser. a modern dockfmt
Type: Formula  |  Latest Version: 0.3.9@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: docker dockerfile formatter devops cli
Install: brew install dockerfmt
About:
dockerfmt is a command-line tool designed to format and parse Dockerfiles, ensuring consistent styling and syntax. It acts as a 'Prettier for Dockerfiles', helping developers maintain clean and readable infrastructure-as-code. The tool supports modern Dockerfile syntax and can be integrated into CI/CD pipelines.
Key Features:
  • Automatic formatting of Dockerfiles to a consistent style
  • Support for modern Dockerfile features and syntax
  • CLI tool for easy integration into development workflows
  • Parser that validates Dockerfile structure
Use Cases:
  • Enforcing consistent code style across team Dockerfiles
  • Validating Dockerfile syntax during CI/CD builds
  • Refactoring and cleaning up legacy Dockerfiles
Alternatives:
  • hadolint – hadolint focuses on linting and best practices, while dockerfmt focuses on formatting and style
  • buildkit – BuildKit is the Docker build engine, while dockerfmt is a standalone formatting utility
Version History
Detected Version Rev Change Commit
Oct 19, 2025 4:41pm 0 VERSION_BUMP 789109e6
Oct 10, 2025 1:07am 0 VERSION_BUMP a1bd93cf