# 使用 Homebrew 安装 docker-debug

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install docker-debug
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:docker-debug
- **软件包管理器:** Homebrew
- **版本:** 0.7.11
- **来源摘要:** Use new container attach on already container go on debug
- **主页:** <https://github.com/zeromake/docker-debug>
- **仓库:** <https://github.com/zeromake/docker-debug>
- **最后更新:** 2026-07-28T14:10:40+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- docker-debug (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.7.11
## 项目历史与用法

docker-debug is a small troubleshooting CLI that starts a new debug container joined to a running target container's namespaces, allowing tools to be supplied from a separate image instead of being baked into the production image.

### 项目历史

The README presents docker-debug as inspired by kubectl-debug and aimed at inspecting running Docker containers by joining PID, network, user, filesystem, and IPC namespaces. It uses nicolaka/netshoot as the default debug image and supports overriding behavior with flags or a local TOML config file.

The changelog shows rapid development in 2019 around mounting filesystems and volumes, adding a Homebrew install path, default config from environment, and config version management. Later entries are sparse, with v0.7.4 in 2022 documenting Docker client-version work and volume path handling.

### 采用历史

Evidence for broad adoption is thin. The project documents Homebrew and binary-release installation, but the upstream materials mostly frame it as a focused utility for users who want Kubernetes-style ephemeral debugging against plain Docker containers.

### 使用方式

A typical invocation is docker-debug CONTAINER COMMAND. The tool creates a separate debug container, joins the target container's namespaces, mounts the target filesystem, runs the requested command, and then cleans up after the debug container exits.

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

docker-debug is interesting to package nerds because it packages an operations pattern rather than a large platform: ship debug tools separately, keep runtime images small, and use Linux namespaces to inspect a live workload. Its niche also makes it a good example of the long tail of Docker-era helper CLIs in Homebrew.

### 时间线

- 2019: early v0.2.x-v0.6.x changelog entries add Homebrew installation, mounted filesystems, volume filesystem support, and config defaults.
- 2020: v0.7.x releases include config client-version and migration fixes.
- 2022: v0.7.4 documents Docker client-version work and volume path support.

### Related projects

- The README names kubectl-debug as the inspiration, nicolaka/netshoot as the default debug image, and Docker Engine API documentation as a reference.

### 来源

- <https://github.com/zeromake/docker-debug#readme>
- <https://github.com/zeromake/docker-debug/blob/master/CHANGELOG.md>
- <https://github.com/zeromake/docker-debug/releases>


## 安全说明

infrastructure mutation or orchestration signal.

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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
