dockerfmt
github.com · Package · Active
Opinionated Dockerfile formatter that formats RUN commands with shfmt
- Developer tools
- Package
- Go
- Day-7 check
- Day-30 check
- 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 dockerfmtConfirmed 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
- 18 releases in the first 30 days: 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), v0.3.6 (18 Apr 2025), v0.3.7-alpha (28 Apr 2025), v0.3.7 (28 Apr 2025) and earlier ones
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: reteps/dockerfmt
- Found: its repository was created; it is packaged in Homebrew. Homebrew
- Release 0.1.0-alpha
- Release v0.5.1
- Release v0.5.2
- Release v0.5.3
- Release v0.5.4
- Release v0.6.0
- Release v1.0.0
- Day-7 check recorded by Kip (details)
- 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
| Source | Record | Last checked |
|---|---|---|
| Homebrew | listing official API record | |
| GitHub repository | reteps/dockerfmt REST API record | |
| GitHub Releases | release list REST API record |
Stable ID brew-dockerfmt. Summary written by KipFound’s editor.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.