# 使用 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
- **版本:** 0.14.0
- **来源摘要:** Utility to simplify running applications in docker containers
- **主页:** <https://github.com/jwilder/dockerize>
- **仓库:** <https://github.com/jwilder/dockerize>
- **最后更新:** 2026-07-28T14:10:41+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dockerize (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
