Latest / Developer tools

dockerfmt

github.com · Package · Active

Opinionated Dockerfile formatter that formats RUN commands with shfmt

Visit github.com ↗Share

Stars
627
Forks
23
Open issues
1
Last commit
Releases
28
Found
20 months ago

GitHub figures as of . They are context, not a ranking.

dockerfmt is an opinionated formatter for Dockerfiles, built on BuildKit's parser and using shfmt to format RUN commands. The readme shows before and after examples, including normalized instructions and fixes for BuildKit build check warnings, and it is a successor to dockfmt.

Repository description on GitHub: “Dockerfile formatter. a modern dockfmt.”

What it does

  • Formats RUN commands using shfmt
  • Normalizes instructions such as LABEL and ENV
  • Fixes issues flagged by BuildKit build checks
  • Go-based, per its repository languages

Good for

  • Format a Dockerfile consistently before committing it
  • Fix BuildKit build check warnings in existing Dockerfiles

Suits: Engineers who maintain Dockerfiles in shared repositories.

What you can try

Install it with Homebrew or from its GitHub releases, then run it on your Dockerfile.

Install

brew install dockerfmt

Confirmed against the package registry. Read the project’s own instructions before running anything.

Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.

Found vs. released

Kip first saw dockerfmt on , when its repository was created; it is packaged in Homebrew. The oldest published release on GitHub is 0.1.0-alpha, dated . Its first tagged release came 2 days after it was found. 28 releases have been published in total; the latest is v1.0.0 ().

Day-7 and day-30 updates

Day 7 15 releases shipped

  • 15 releases in the first 7 days: 0.2.7 (9 Apr 2025), 0.2.8 (9 Apr 2025), 0.3.0 (9 Apr 2025), 0.3.1 (9 Apr 2025), 0.3.2 (9 Apr 2025), 0.3.3 (10 Apr 2025), 0.3.4 (10 Apr 2025), v0.3.5 (11 Apr 2025) and earlier ones

Checked , later than day 7 because tracking began after.

Day 30 18 releases shipped

Checked , later than day 30 because tracking began after.

Release timeline every entry links to its source

Releases per month, last 24 months (28 in total, busiest month 18).
  1. Repository created on GitHub: reteps/dockerfmt
  2. Found: its repository was created; it is packaged in Homebrew. Homebrew
  3. Release 0.1.0-alpha
  4. Release v0.5.1
  5. Release v0.5.2
  6. Release v0.5.3
  7. Release v0.5.4
  8. Release v0.6.0
  9. Release v1.0.0
  10. Day-7 check recorded by Kip (details)
  11. Day-30 check recorded by Kip (details)

Showing the first and the 6 latest of 28 releases. All releases on GitHub

Quick answers

When was dockerfmt released?
Its first tagged release on GitHub is dated 6 Apr 2025. Kip found it on Homebrew on 5 Apr 2025.
Is dockerfmt open source?
Its source is public on GitHub at reteps/dockerfmt under the MIT licence.
What does dockerfmt run on?
Command line.
Is dockerfmt free?
It is open source, so the code is free to read and run; check the licence for terms.
Is dockerfmt still maintained?
Yes. It had a commit or release in the last 90 days as of the latest check.

Provenance

SourceRecordLast checked
Homebrewlisting
official API record
GitHub repositoryreteps/dockerfmt
REST API record
GitHub Releasesrelease list
REST API record

Stable ID brew-dockerfmt. Summary written by KipFound’s editor.

Share

Similar tools

More in Developer tools

Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.