# 使用 Homebrew 安装 buildkitd

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

## 安装

```sh
sudo av install brew:buildkitd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install buildkitd
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:buildkitd
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/buildkitd>
- **版本:** 0.32.2
- **来源摘要:** Concurrent, cache-efficient, and Dockerfile-agnostic builder toolkit (Daemon)
- **主页:** <https://github.com/moby/buildkit>
- **仓库:** <https://github.com/moby/buildkit>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/moby/buildkit/archive/refs/tags/v0.32.1.tar.gz>
- **最后更新:** 2026-08-04T15:04:10Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- buildkitd (cli)
- buildkitd (别名)

## 依赖

- runc

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- 服务: declared
- 注意事项: To run buildkitd as the current user, see the following steps: OCI worker mode: brew install rootlesskit rootlesskit buildkitd containerd worker mode: brew install nerdctl containerd rootlesskit slirp4netns containerd-rootless-setuptool.sh install CONTAINERD_NAMESPACE=default containerd-rootless-setuptool.sh install-buildkit-containerd To run buildkitd as the root user, use `brew services` with `sudo --preserve-env=HOME`.
- Bottle: 可用 于 arm64_linux, x86_64_linux

## 版本和新鲜度

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

`buildkitd` is the daemon side of BuildKit: the long-running service that executes BuildKit build graphs, manages workers and cache, and exposes the API used by `buildctl`, Docker Buildx, and other clients.

### 项目历史

The daemon exists because BuildKit was designed as a reusable backend rather than a monolithic CLI operation. The 2017 Moby proposal described BuildKit as a long-running service optimized for parallel execution, complex projects, and multiple builds at the same time.

In the BuildKit repository, `buildkitd` is documented as the daemon paired with the `buildctl` client. It supports OCI and containerd worker backends, rootless operation, systemd socket activation, TCP exposure, Kubernetes/containerized deployments, and daemon configuration through `buildkitd.toml`.

### 采用历史

`buildkitd` adoption followed BuildKit adoption: once Docker Buildx and then Docker Engine 23.0 made BuildKit the default build engine, the daemon became the infrastructure component behind many local, remote, and CI builder setups.

The daemon is especially visible outside Docker Desktop and Docker Engine defaults, where users run BuildKit directly on Linux hosts, in Kubernetes, in containers, or from macOS through a Linux VM such as Lima.

### 使用方式

Users start `buildkitd` as root or rootless, point clients at its Unix socket or TCP endpoint, and tune behavior with `/etc/buildkit/buildkitd.toml` or `~/.config/buildkit/buildkitd.toml`. It manages worker backends, garbage collection, cache storage, network settings, entitlements, and registry configuration.

Package-manager users care about `buildkitd` when they need a real BuildKit service instead of only the `buildctl` client, for example to run local CI builders, expose a remote build farm endpoint, or experiment with non-Docker workers.

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

`buildkitd` is the boring but important half of BuildKit packaging: without the daemon, `buildctl` is just a client. Splitting the Homebrew formula surface between BuildKit tools and the daemon reflects the practical difference between a portable CLI and a Linux-oriented build service.

For people who package container tooling, `buildkitd` is a case study in shipping a service-oriented build engine whose useful configuration is mostly runtime paths, sockets, workers, and cache policy rather than project-local config files.

### 时间线

- 2017: BuildKit proposal describes a long-running build service.
- 2017: Public `moby/buildkit` repository is created.
- 2023: Docker Engine 23.0 makes Buildx and BuildKit the default Docker build path.
- 2026: `buildkitd.toml` remains the documented daemon configuration surface.

### Related projects

- `buildkitd` is part of BuildKit and is used with `buildctl`, Docker Buildx, Moby/Docker, containerd, runc/crun, Lima, Kubernetes, and OCI image tooling.

### 来源

- <https://api.github.com/repos/moby/buildkit>
- <https://docs.docker.com/build/buildkit/toml-configuration>
- <https://github.com/moby/buildkit#readme>
- <https://github.com/moby/moby/issues/32925>


## 安全说明

formula declares a Homebrew service.

- **Geiger 风险:** orange / 中
- formula declares a Homebrew service


## 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

- Unix: /etc/buildkit/buildkitd.toml, ~/.config/buildkit/buildkitd.toml
## 源数据库详情

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


## 相关链接

- [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.
- [runc](https://pkg.so/zh-hans/brew/runc/) - Runtime dependency declared by Homebrew.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [buildkit](https://pkg.so/zh-hans/brew/buildkit/) - Shares the same upstream source repository.
- [docker-buildx](https://pkg.so/zh-hans/brew/docker-buildx/) - Shares pkgdb curated category or tags: buildkit, cli, containers, developer-tools.
- [docker-engine](https://pkg.so/zh-hans/brew/docker-engine/) - Shares pkgdb curated category or tags: cli, containers, daemon, developer-tools.
- [diffoci](https://pkg.so/zh-hans/brew/diffoci/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, oci.
- [manifest-tool](https://pkg.so/zh-hans/brew/manifest-tool/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, oci.
- [chunkah](https://pkg.so/zh-hans/brew/chunkah/) - Shares pkgdb curated category or tags: cli, containers, developer-tools, oci.
- [docker](https://pkg.so/zh-hans/brew/docker/) - Shares pkgdb curated category or tags: cli, containers, developer-tools.
- [docker-compose](https://pkg.so/zh-hans/brew/docker-compose/) - Shares pkgdb curated category or tags: cli, containers, developer-tools.

## Combined YAML source

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