remorses/docker-phobia
关于
分析 Docker 镜像大小
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文docker-phobia
analyze Docker images and make them slim
Install
You can install docker-phobia with:
curl -sf https://goblin.run/github.com/remorses/docker-phobia | sh
# goblin.run will build the binary and place it in PATH
# if you have go installed you can also do
go install github.com/remorses/docker-phobia@latest
Usage
docker-phobia
# Use the arrow keys to navigate: ↓ ↑ → ←
# ? Select a Docker image:
# ▸ node:18-slim
# postgres:latest
# or pass the image tag as an argument
docker-phobia node:18-slim
Example Output
Every rectangle represents a folder or file in the image. The bigger the rectangle, the more space it takes up.
The different colors represent the different layers in the image. If two rectangles have the same color, they are in the same layer. If the color shade is similar, they are from layers close to each other.

How it works
Execute docker-phobia to initiate a Go script that leverages dive internal API for Docker image retrieval and analysis, outputting a JSON file structure with file sizes. Concurrently, it spins up a server on port 8080 and launches docker-phobia.vercel.app, which visualizes the JSON data as a treemap.
Roadmap
- Show the size for each rect on hover as tooltip
- Use better domain
- Use tags to version the cli
- Add share button to share the treemap with anyone without installing again, use the image SHA in the url.
- Automatically store public images (images from DockerHub with SHA already published) in a docker-phobia directory indexed on Google. People can see images size between versions and tags.
探索相关项目
加载中…