# 使用 Homebrew, apk, chocolatey 安装 docker-engine

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install docker-engine
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add docker-engine
```

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

### Windows

- Chocolatey (92%):

```sh
choco install docker-engine
```

  证据: Chocolatey community package catalog: docker-engine from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dispcalgui.install'

## 软件包事实

- **软件包键:** brew:docker-engine
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/docker-engine>
- **版本:** 29.7.1
- **来源摘要:** Pack, ship and run any application as a lightweight container (Daemon)
- **主页:** <https://www.docker.com/>
- **仓库:** <https://github.com/moby/moby>
- **上游文档:** <https://www.docker.com/>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/moby/moby.git>
- **最后更新:** 2026-07-31T20:50:22Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- docker-proxy (cli)
- dockerd (cli)
- dockerd-rootless-setuptool.sh (cli)
- dockerd-rootless.sh (cli)
- docker-proxy (别名)
- dockerd (别名)
- dockerd-rootless-setuptool.sh (别名)
- dockerd-rootless.sh (别名)

## 依赖

- containerd
- nftables
- runc
- tini

## 构建依赖

- go
- go-md2man
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: To run dockerd as the current user, execute the following commands: brew install rootlesskit slirp4netns dockerd-rootless-setuptool.sh install NOTE: As the lifecycle of containerd is managed by dockerd, do NOT run `containerd-rootless-setuptool.sh install` before `dockerd-rootless-setuptool.sh install`. To run dockerd as the root user, use `brew services` with `sudo --preserve-env=HOME`.
- Bottle: 可用 于 arm64_linux, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 29.7.1
- 管理器更新时间: 2026-07-31
- 本地数据: OK
- 上游仓库: https://github.com/moby/moby
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

Docker Engine is Docker's open-source container runtime stack: the dockerd daemon, Engine API, and the client-server machinery that builds, runs, networks, stores, and manages containers, images, volumes, and related objects.

### 项目历史

Docker Engine began as the open-source Docker daemon and API codebase and is now built from the Moby Project. The Moby README describes Moby as an open-source project created by Docker to accelerate containerization and as a modular toolkit for assembling container-based systems, with Docker committed to using Moby as upstream for Docker products.

The Engine documentation describes Docker Engine as a client-server application with dockerd, APIs, and the Docker CLI. Over time, the daemon has been refactored toward a modular container stack that relies on related projects such as containerd, runc, and BuildKit. The Moby roadmap explicitly calls out reducing duplicated runtime code by relying more on containerd and replacing the legacy builder with BuildKit.

The release history spans from v0.1.0 in March 2013 to stable Docker Engine release lines in the 2020s. Docker 1.0 arrived in June 2014, the 1.10 line in 2016 was a major early Engine generation, and modern release notes show Engine 29.x continuing security, containerd, BuildKit, runc, rootless, storage, networking, and API work.

### 采用历史

Docker Engine's adoption changed package-manager culture by making dockerd a normal server-side dependency for development machines, CI builders, and Linux hosts. The package is both an end-user tool and infrastructure substrate: Docker Desktop bundles it for local development, Linux distributions package it for servers, and many higher-level tools assume a Docker-compatible daemon or API.

Its adoption also created a dependency constellation that package maintainers track closely: Docker CLI, containerd, runc, BuildKit, RootlessKit, Compose, credential helpers, storage drivers, network/firewall integrations, and daemon configuration files all have to line up for a working install.

### 使用方式

Users usually interact with Docker Engine through the docker CLI, while programs call the Engine API. The daemon manages images, containers, networks, and volumes, stores daemon configuration in daemon.json on supported platforms, and persists daemon data under platform-specific data directories such as /var/lib/docker on Linux.

Common package-level usage includes installing dockerd as a service, configuring daemon.json for hosts, storage, logging, proxies, or rootless mode, and keeping Engine aligned with containerd, runc, BuildKit, and Docker CLI versions.

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

Docker Engine is one of the packages that reshaped modern packaging: it made container images a default build and delivery unit, made daemon/API version compatibility part of everyday developer tooling, and turned low-level Linux namespaces, cgroups, layered filesystems, registries, and OCI runtimes into routine package-manager concerns.

For package nerds, docker-engine is also a stress test for packaging policy. It ships a privileged daemon, CLI integration, rootless helpers, networking and firewall behavior, storage drivers, bundled static components, security updates, and fast-moving upstream release notes. Few packages expose as many boundaries between OS packaging, language tooling, cloud CI, and application deployment.

### 时间线

- 2013: v0.1.0 is tagged in the Docker/Moby history.
- 2014: Docker 1.0.0 is tagged.
- 2016: Docker 1.10.0 is tagged in the early Engine release series.
- 2017: Docker 1.13.0 is tagged; the deprecated-features documentation records several 1.13-era deprecations and removals.
- 2025: the Moby README notes Docker v29 deprecates the old github.com/docker/docker Go module path in favor of supported Moby modules.
- 2026: Docker Engine 29.x release notes document ongoing security, containerd, BuildKit, runc, networking, rootless, and packaging updates.

### Related projects

- Related projects include Moby, Docker CLI, Docker Compose, Docker Desktop, containerd, runc, BuildKit, RootlessKit, Docker Hub and registries, Docker credential helpers, and Mirantis Container Runtime.

### 来源

- <https://docs.docker.com/engine/>
- <https://docs.docker.com/engine/daemon/>
- <https://docs.docker.com/get-started/docker-overview/>
- <https://github.com/moby/moby#readme>
- <https://github.com/moby/moby/blob/master/ROADMAP.md>
- <https://docs.docker.com/engine/release-notes/29/>
- <https://github.com/moby/moby/releases>
- <https://github.com/moby/moby/tags>


## 安全说明

formula declares a Homebrew service. infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /etc/docker/daemon.json
- Windows: %programdata%\docker\config\daemon.json
## 源数据库详情

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

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

- apk - docker-engine - 29.7.1-r0: normalized package name match | Alpine Linux edge package indexes: docker-engine from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Docker Engine (dockerd) | https://www.docker.io/
- Chocolatey - docker-engine: normalized package name match | Chocolatey community package catalog: docker-engine from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','dispcalgui.install'


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure 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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [containerd](https://pkg.so/zh-hans/brew/containerd/) - Runtime dependency declared by Homebrew.
- [runc](https://pkg.so/zh-hans/brew/runc/) - Runtime dependency declared by Homebrew.
- [nftables](https://pkg.so/zh-hans/brew/nftables/) - Runtime dependency declared by Homebrew.
- [tini](https://pkg.so/zh-hans/brew/tini/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [go-md2man](https://pkg.so/zh-hans/brew/go-md2man/) - Build dependency declared by Homebrew.
- [docker](https://pkg.so/zh-hans/brew/docker/) - Shares the same upstream homepage.
- [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.
- [docker-language-server](https://pkg.so/zh-hans/brew/docker-language-server/) - Package names and metadata indicate a similar tool family. Shared terms: cli, containers, developer, developer-tools, docker.
- [docker-debug](https://pkg.so/zh-hans/brew/docker-debug/) - Package names and metadata indicate a similar tool family. Shared terms: cli, container, containers, developer, developer-tools.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
