dive
54,721
Stars
—
Forks
0
Watchers
—
Open Issues
待补全
许可证
Go
语言
—
创建时间
最近更新
项目能做什么
用于逐层探索与分析 Docker 镜像内容的分析工具。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# dive
[](https://github.com/wagoodman/dive/releases/latest)
[](https://github.com/wagoodman/dive/actions/workflows/validations.yaml)
[](https://goreportcard.com/report/github.com/wagoodman/dive)
[](https://github.com/wagoodman/dive/blob/main/LICENSE)
[](https://www.paypal.me/wagoodman)
**A tool for exploring a Docker image, layer contents, and discovering ways to shrink the size of your Docker/OCI image.**

To analyze a Docker image simply run dive with an image tag/id/digest:
```bash
dive <your-image-tag>
```
or you can dive with Docker directly:
```
alias dive="docker run -ti --rm -v /var/run/docker.sock:/var/run/docker.sock docker.io/wagoodman/dive"
dive <your-image-tag>
# for example
dive nginx:latest
```
or if you want to build your image then jump straight into analyzing it:
```bash
dive build -t <some-tag> .
```
Building on macOS (supporting only the Docker container engine):
```bash
docker run --rm -it \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":"$(pwd)" \
-w "$(pwd)" \
-v "$HOME/.dive.yaml":"$HOME/.dive.yaml" \
docker.io/wagoodman/dive:latest build -t <some-tag> .
```
Additionally you can run this in your CI pipeline to ensure you're keeping wasted space to a minimum (this skips the UI):
```
CI=true dive <your-image>
```

**This is beta quality!** *Feel free to submit an issue if you want a new feature or find a bug :)*
## Basic Features
**Show Docker image contents broken down by layer**
As you select a layer on the left, you are shown the contents of that layer combined with all previous layers on the right. Also, you can fully explore the file tree with the arrow keys.
**Indicate what's changed in each layer**
Files that have changed, been modified, added, or removed are indicated in the file tree. This can be adjusted to show changes for a specific layer, or aggregated changes up to this layer.
**Estimate "image efficiency"**
The lower left pane shows basic layer info and an experimental metric that will guess how much wasted space your image contains. This might be from duplicating files across layers, moving files across layers, or not fully removing files. Both a percentage "score" and total wasted file space is provided.
**Quick build/analysis cycles**
You can build a Docker image and do an immediate analysis with one command:
`dive build -t some-tag .`
You only need to replace your `docker build` command with the same `dive build`
command.
**CI Integration**
Analyze an image and get a pass/fail result based on the image eff
阅读完整原文
项目深度分析 AI 生成
自动分析与PR生成的 GitHub Action / GitLab 插件
| 产品构想 | 基于 dive 核心分析逻辑,开发一款持续集成自动化优化工具,发现镜像浪费空间后直接生成优化建议或提交重构 Dockerfile 的 PR。 |
| 核心功能 | CI 镜像分析与评级、Dockerfile 坏味道扫描、自动提供合并层与清理缓存的 PR 补丁、历史体积变化趋势图。 |
| 目标用户 | 开源维护者、中小型研发团队的 DevOps 工程师。 |
| 难度/周期 | 中等 · 3-5 周 · 成本:低(主要为轻量云函数与 GitHub Marketplace 上架运营成本) |
| 收费模式 | Freemium 模式(公开仓库免费,私有仓库按席位或按流水线运行次数订阅制收费)。 |
| 竞争风险 | 依赖上游 Dockerfile 解析精度,部分复杂多阶段构建优化可能破坏构建逻辑。 |
| 依据 | 已验证事实 |
企业级容器镜像精简与分发加速 SaaS 控制台
| 产品构想 | 提供私有 Registry 旁路对接平台,定期批量扫描内部所有生产镜像,输出空间浪费/效率看板,并一键触发无损镜像压缩与清理。 |
| 核心功能 | 私有镜像仓库(Harbor/ECR/ACR)静默批量扫描、浪费空间聚合报表、基于层复用的优化指导、与 CI/CD 质量门禁阻断集成。 |
| 目标用户 | 中大型企业平台工程团队、云原生运维负责人。 |
| 难度/周期 | 较高 · 8-12 周 · 成本:中等(需要服务器处理镜像拉取解析与元数据存储) |
| 收费模式 | 企业级 B2B 订阅(按镜像仓库容量或托管实例规格年付)、私有化部署支持协议。 |
| 竞争风险 | 需要接触用户私有镜像仓库凭据,安全合规审查要求高;处理大镜像对带宽和临时磁盘开销大。 |
| 依据 | 数据支持的判断 |
交互式桌面端容器镜像诊断与一键瘦身套件 (Desktop GUI)
| 产品构想 | 将 dive 的终端 TUI 升级为跨平台现代化桌面客户端(Electron/Tauri),集成可视化的树状图、文件差异对比,并提供本地镜像一键重构导出能力。 |
| 核心功能 | 现代化可视化 Treemap 展示、拖拽式层合并与排除过滤、Docker Desktop/Podman 扩展插件、本地一键重打包导出瘦身镜像。 |
| 目标用户 | 本地容器开发频繁的个人开发者、全栈工程师。 |
| 难度/周期 | 中等 · 4-6 周 · 成本:极低(纯客户端运行,无云端服务器负担) |
| 收费模式 | 买断制 License(通过 Gumroad / Lemon Squeezy 销售高级交互功能,如多镜像版本可视化 Diff、Dockerfile 自动优化建议)。 |
| 竞争风险 | 受众中极客偏好命令行免费工具,付费意愿相比团队级方案较低。 |
| 依据 | AI推测 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
相似项目数据正在完善中,暂不展示(避免误导)
项目优势与风险
| 技术成熟度 | 创建时间待补全,最近推送 ,发布过 28 个 Release |
| 社区活跃 | Star 54,721 / Fork 0 / Issue 0(数据支持,可自行核实) |
| 许可证 | 未检测到(需人工确认) |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。