# Install dockerfilegraph with Homebrew

Visualize your multi-stage Dockerfiles. Version 0.21.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:dockerfilegraph
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install dockerfilegraph
```

  Evidence: local Homebrew formula metadata

## Package facts

- **Package key:** brew:dockerfilegraph
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/dockerfilegraph>
- **Version:** 0.21.0
- **Source summary:** Visualize your multi-stage Dockerfiles
- **Homepage:** <https://github.com/patrickhoefler/dockerfilegraph>
- **Repository:** <https://github.com/patrickhoefler/dockerfilegraph>
- **Upstream docs:** <https://github.com/patrickhoefler/dockerfilegraph#readme>
- **License:** MIT
- **Source archive:** <https://github.com/patrickhoefler/dockerfilegraph/archive/refs/tags/v0.21.0.tar.gz>
- **Generated:** 2026-07-10T07:20:53+00:00

## Executables

- dockerfilegraph (cli)
- dockerfilegraph (alias)

## Dependencies

- graphviz

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-10
- Package-manager version: 0.21.0
- Local data: ok
- Upstream repository: https://github.com/patrickhoefler/dockerfilegraph
- Upstream latest detected: v0.21.0 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

dockerfilegraph is a Go CLI that turns multi-stage Dockerfiles into Graphviz dependency diagrams.

### Project history

Patrick Hoefler's repository was created in February 2021 and released v0.1.0 the same day. The README frames the tool around a common Docker build problem: multi-stage Dockerfiles become hard to reason about once stages, external images, `COPY --from`, and mount-based dependencies accumulate.

The project continued to receive regular releases through the 0.21.x line by March 2026. Its output model matured around build-stage nodes, highlighted default targets, external-image nodes, and edge styles for `FROM`, `COPY --from`, and `RUN --mount ... from=` dependencies.

### Adoption history

dockerfilegraph remains a specialist visualization tool rather than a default Docker workflow. Its install paths still matter to package users: the README documents Docker/ghcr usage, Homebrew installation from the author's tap, mise installation from GitHub, and source builds.

The Homebrew formula API reported stable version 0.21.0, 16 installs in the previous 30 days, and 477 installs in the previous year as of June 30, 2026. That is modest adoption, but credible for a focused Dockerfile architecture/debugging utility.

### How it is used

Running `dockerfilegraph` in a project directory generates a graph for `Dockerfile`, with output formats including PDF, SVG, and PNG. Flags support legends, layer display, target filtering, scratch-image handling, separated external-image nodes, and Graphviz layout tuning.

### Why package nerds care

The package is notable because it externalizes Docker build structure into ordinary graph artifacts. It is the kind of CLI package maintainers like: a single executable plus Graphviz turns opaque build-stage relationships into inspectable files for reviews, docs, and debugging.

### Timeline

- 2021: Repository created and v0.1.0 released.
- 2025: 0.19.x releases show continuing maintenance.
- 2026: v0.21.0 released and Homebrew formula reports stable 0.21.0.

### Related projects

- dockerfilegraph depends conceptually on Docker multi-stage builds and uses Graphviz for graph rendering.
- It overlaps with documentation and build-debugging workflows rather than with Docker runtime management tools.

### Sources

- <https://github.com/patrickhoefler/dockerfilegraph#readme>
- <https://api.github.com/repos/patrickhoefler/dockerfilegraph>
- <https://github.com/patrickhoefler/dockerfilegraph/releases/tag/v0.1.0>
- <https://github.com/patrickhoefler/dockerfilegraph/releases/tag/v0.21.0>
- <https://formulae.brew.sh/api/formula/dockerfilegraph.json>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dockerfilegraph
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [graphviz](https://www.automicvault.com/pkg/brew/graphviz/) - Runtime dependency declared by Homebrew.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [docker-language-server](https://www.automicvault.com/pkg/brew/docker-language-server/) - Shares av.db curated category or tags: cli, containers, developer-tools, dockerfile.
- [dockviz](https://www.automicvault.com/pkg/brew/dockviz/) - Shares av.db curated category or tags: cli, containers, developer-tools, visualization.
- [cargo-depgraph](https://www.automicvault.com/pkg/brew/cargo-depgraph/) - Shares av.db curated category or tags: cli, dependency-graph, developer-tools, visualization.
- [cdebug](https://www.automicvault.com/pkg/brew/cdebug/) - Shares av.db curated category or tags: cli, containers, developer-tools.
- [cek](https://www.automicvault.com/pkg/brew/cek/) - Shares av.db curated category or tags: cli, containers, developer-tools.
- [cekit](https://www.automicvault.com/pkg/brew/cekit/) - Shares av.db curated category or tags: cli, containers, developer-tools.
- [chunkah](https://www.automicvault.com/pkg/brew/chunkah/) - Shares av.db curated category or tags: cli, containers, developer-tools.
- [cri-tools](https://www.automicvault.com/pkg/brew/cri-tools/) - Shares av.db curated category or tags: cli, containers, developer-tools.
- [makefile2graph](https://www.automicvault.com/pkg/brew/makefile2graph/) - Local package facts share a topical domain. Shared terms: cli, dependency, dependency-graph, developer, developer-tools.
- [gprof2dot](https://www.automicvault.com/pkg/brew/gprof2dot/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, graph, graphviz.

## Combined YAML source

View the package source record on GitHub. [combined/dockerfilegraph.yml](https://github.com/automic-vault/db/blob/main/combined/dockerfilegraph.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- cross-ecosystem install command graph
