Automic VaultAutomic Vault

brew

使用 Homebrew 安装 docker-gen

查看 docker-gen 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install docker-gen

local Homebrew formula metadata

概览

软件包摘要

Generate files from docker container metadata

命令和别名

  • docker-gen

历史

项目历史与用法

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.

安全态势

风险级别:orange

infrastructure mutation or orchestration signal.

风险分类器

orange 风险 · 中 置信度 · infrastructure

原因

  • infrastructure mutation or orchestration signal

信号

  • text:container

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
docker-gencli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本0.17.2
管理器更新时间2026-07-11
本地数据OK
上游当前
检测到的最新版本0.17.2

https://github.com/nginx-proxy/docker-gen

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:docker-gen
版本0.17.2
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/docker-gen
主页https://github.com/nginx-proxy/docker-gen
仓库https://github.com/nginx-proxy/docker-gen
上游文档https://github.com/nginx-proxy/docker-gen#readme
许可证MIT
源码归档https://github.com/nginx-proxy/docker-gen/archive/refs/tags/0.17.2.tar.gz
最后更新2026-07-11T11:44:11Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namedocker-gen
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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