# 使用 Homebrew, apk, MacPorts 安装 dockerize

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

## 安装

```sh
sudo av install brew:dockerize
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dockerize
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dockerize
```

  证据: MacPorts ports tree: devel/dockerize/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add dockerize
```

  证据: Alpine Linux edge package indexes: dockerize from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

## 软件包事实

- **软件包键:** brew:dockerize
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dockerize>
- **版本:** 0.14.0
- **来源摘要:** Utility to simplify running applications in docker containers
- **主页:** <https://github.com/jwilder/dockerize>
- **仓库:** <https://github.com/jwilder/dockerize>
- **许可证:** MIT
- **源码归档:** <https://github.com/jwilder/dockerize/archive/refs/tags/v0.14.0.tar.gz>
- **最后更新:** 2026-07-28T14:10:41+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dockerize (cli)
- dockerize (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.14.0
- 管理器更新时间: 2026-07-28
- 本地数据: OK
- 上游仓库: https://github.com/jwilder/dockerize
- 检测到的最新版本: v0.14.0 (当前)
## 项目历史与用法

dockerize is Jason Wilder's container-startup helper for templating config files from environment variables, waiting for dependent services, and tailing application logs to stdout or stderr.

### 项目历史

The GitHub repository was created in October 2014, the same day as Wilder's blog post 'A Simple Way To Dockerize Applications.' That early Docker era often required shell glue to turn environment variables into config files, wait for linked services, and redirect file-based logs into Docker's logging model.

dockerize formalized that glue into one static-style utility. Its first GitHub release, v0.0.1, appeared in October 2014; v0.1.0 followed in January 2016; and v0.13.0 was published in June 2026 with current release artifacts for Linux, Alpine, and macOS architectures.

### 采用历史

dockerize became widely referenced because it solved practical Compose-era race conditions and legacy-app containerization problems without requiring application changes. The README links a Docker Compose issue discussion about why waiting for service readiness was outside Compose's own scope.

Its adoption path spans direct release downloads, a `jwilder/dockerize` Docker base image, Alpine packaging, MacPorts, and Homebrew. The Homebrew formula API reported stable version 0.13.0, 115 installs in the previous 30 days, and 1,630 installs in the previous year as of June 30, 2026.

### 使用方式

Typical usage wraps an application command with `dockerize`, adding `-template` mappings for generated config files, `-wait` URLs for TCP/HTTP/file/unix readiness checks, `-timeout` for fail-fast startup, and `-stdout` or `-stderr` log-tail targets. Templates use Go's `text/template` with environment access through `.Env`.

### 为什么软件包爱好者会关心

dockerize is significant because it captures a whole genre of container entrypoint shell scripts in a reusable package. It is boring in the best package-manager sense: one small executable that makes old apps behave like cloud-native containers at startup.

### 时间线

- 2014: Repository created, introductory blog post published, and v0.0.1 released.
- 2016: v0.1.0 release published.
- 2025: 0.9.x releases show continued maintenance.
- 2026: v0.13.0 released and Homebrew reports stable 0.13.0.

### Related projects

- dockerize is historically related to Docker, Docker Compose, Go `text/template`, and container entrypoint/wait-for-it style helper scripts.
- It complements rather than replaces orchestration health checks: its main value is inside container startup for applications that cannot natively read environment variables, wait on dependencies, or log to stdout.

### 来源

- <https://github.com/jwilder/dockerize#readme>
- <https://api.github.com/repos/jwilder/dockerize>
- <https://jasonwilder.com/blog/2014/10/13/a-simple-way-to-dockerize-applications/>
- <https://github.com/jwilder/dockerize/releases/tag/v0.0.1>
- <https://github.com/jwilder/dockerize/releases/tag/v0.13.0>
- <https://formulae.brew.sh/api/formula/dockerize.json>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 源数据库详情

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

## 其他软件包管理器记录

- apk - dockerize - 0.13.0-r1: normalized package name match | Alpine Linux edge package indexes: dockerize from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Utility to simplify running applications in docker containers. | https://github.com/jwilder/dockerize
- MacPorts - dockerize: normalized package name match | MacPorts ports tree: devel/dockerize/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [docker](https://pkg.so/zh-hans/brew/docker/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-compose](https://pkg.so/zh-hans/brew/docker-compose/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-buildx](https://pkg.so/zh-hans/brew/docker-buildx/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [lazydocker](https://pkg.so/zh-hans/brew/lazydocker/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-credential-helper-ecr](https://pkg.so/zh-hans/brew/docker-credential-helper-ecr/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-credential-helper](https://pkg.so/zh-hans/brew/docker-credential-helper/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [docker-machine](https://pkg.so/zh-hans/brew/docker-machine/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [devcontainer](https://pkg.so/zh-hans/brew/devcontainer/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, docker.
- [gebug](https://pkg.so/zh-hans/brew/gebug/) - Local package facts share a topical domain. Shared terms: applications, cli, containers, developer, developer-tools.
- [docker-clean](https://pkg.so/zh-hans/brew/docker-clean/) - Local package facts share a topical domain. Shared terms: cli, containers, developer, developer-tools, docker.

## Combined YAML source

View the package source record on GitHub. [combined/dockerize.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dockerize.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
- external package-manager database matches
- cross-ecosystem install command graph
