# docker-gen を Homebrew でインストール

docker-gen のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:docker-gen
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install docker-gen
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:docker-gen
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/docker-gen>
- **バージョン:** 0.17.2
- **ソース概要:** Generate files from docker container metadata
- **ホームページ:** <https://github.com/nginx-proxy/docker-gen>
- **リポジトリ:** <https://github.com/nginx-proxy/docker-gen>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/nginx-proxy/docker-gen/archive/refs/tags/0.17.2.tar.gz>
- **最終更新:** 2026-07-28T14:10:40+02:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- docker-gen (cli)
- docker-gen (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.17.2
- マネージャ更新日: 2026-07-28
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/nginx-proxy/docker-gen
- 検出された最新: 0.17.2 (最新)
## プロジェクトの歴史と使われ方

docker-gen is a Docker metadata templating tool. It watches containers and renders Go templates into configuration files, commonly for reverse proxies, logging, log rotation, and service-discovery glue.

### プロジェクトの歴史

The upstream README defines docker-gen as a file generator that renders templates using Docker container metadata. It documents early Docker-era use cases such as nginx and haproxy reverse-proxy config generation, fluentd and logstash logging files, logrotate files, and service-discovery scripts.

The tag history starts in May 2014 with 0.1.0 and continues into current nginx-proxy maintenance. The project evolved around the Docker event stream: it can render once, watch for container starts and stops, filter containers and events, send signals or restart commands after regeneration, and run either on the host, bundled inside another container, or as a separate companion container.

### 採用の歴史

docker-gen is best known through the nginx-proxy ecosystem. The README names nginx-proxy/nginx-proxy as a trusted-build example of running docker-gen alongside nginx, and the current repository lives under the nginx-proxy organization. Its adoption followed a common Docker pattern: containers advertise intent through metadata or environment variables, and a sidecar regenerates host or proxy configuration.

### 使われ方

Users provide a Go text/template file and an optional destination path. docker-gen reads Docker metadata, renders the template, and can watch for container events to regenerate output and notify a service with a signal or command. It also supports config files with multiple template directives and Docker connection settings through flags or Docker environment variables.

### パッケージ好きにとっての重要性

docker-gen matters because it captures a pre-orchestrator, Docker-native automation style: dynamic infrastructure from container metadata before Compose, Kubernetes ingress controllers, and service meshes became common. Package nerds care because it is tiny, scriptable, and still explains a lot of nginx-proxy-era container deployment patterns.

### タイムライン

- 2014: 0.1.0 is tagged, placing docker-gen in the early Docker ecosystem.
- 2015: 0.4.x and 0.5.x tags show continued rapid early releases.
- 2016: 0.7.x tags continue the Docker sidecar/template workflow.
- 2020s: the project is maintained under the nginx-proxy organization.
- 2026: 0.16.x tags show ongoing maintenance.

### Related projects

- Related projects include nginx-proxy/nginx-proxy, nginxproxy/docker-gen container images, nginx, haproxy, fluentd, logrotate, Docker Engine, Go text/template, sprig, and earlier Docker service-discovery helpers such as docker-register.

### ソース

- <https://github.com/nginx-proxy/docker-gen#readme>
- <https://github.com/nginx-proxy/docker-gen/releases>
- <https://github.com/nginx-proxy/docker-gen/tags>
- <https://hub.docker.com/r/nginxproxy/docker-gen>


## セキュリティノート

infrastructure mutation or orchestration signal.

- **Geiger リスク:** orange / 中
- infrastructure mutation or orchestration signal

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** docker-gen
- **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


## 関連リンク

- [Cloud CLI packages](https://pkg.so/ja/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [dockcheck](https://pkg.so/ja/brew/dockcheck/) - Shares pkgdb curated category or tags: automation, cli, containers, developer-tools, docker.
- [docker](https://pkg.so/ja/brew/docker/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-compose](https://pkg.so/ja/brew/docker-compose/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-buildx](https://pkg.so/ja/brew/docker-buildx/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [lazydocker](https://pkg.so/ja/brew/lazydocker/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-credential-helper-ecr](https://pkg.so/ja/brew/docker-credential-helper-ecr/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-credential-helper](https://pkg.so/ja/brew/docker-credential-helper/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-machine](https://pkg.so/ja/brew/docker-machine/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-debug](https://pkg.so/ja/brew/docker-debug/) - Package names and metadata indicate a similar tool family. Shared terms: cli, container, containers, developer, developer-tools.
- [docker-clean](https://pkg.so/ja/brew/docker-clean/) - Package names and metadata indicate a similar tool family. Shared terms: cli, containers, developer, developer-tools, docker.

## Combined YAML source

View the package source record on GitHub. [combined/docker-gen.yml](https://github.com/mxcl/pkgdb/blob/main/combined/docker-gen.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
