Skip to content
Search

Dockerfmt

lastmod 2025-04-11created 2025-04-111 edits

Dockerfile formatter. a modern dockfmt.

Simply put, a Dockerfile formatter.

About

  • A modernized replacement for the existing dockfmt; a tool that automatically tidies Dockerfiles and enforces code style
  • Internally uses buildkit for Dockerfile parsing and mvdan/sh for formatting shell scripts inside RUN commands
  • Helps maintain a consistent code style and is useful in code review and CI environments

Usage

dockerfmt [Dockerfile] [flags]  
dockerfmt [command]  

See also

Favorite site

author Zer0 sitemap