vicanso / diving-rs

Exploring each layer in a docker image, it's fast and simple

Home Page:https://diving.npmtrend.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

diving-rs

中文

Exploring each layer in a docker image, it's fast and simple, developed with Rust. There are two modes: terminal(default) and web.

It does not depend on anything, including docker client.

It supports multiple platforms: linux, windows and macos, you can get it from release page.

Note: Since the layer data needs to be downloaded from the source, such as Docker Hub, it may take a long time, if times out, please try again, it is recommended that the download program be executed locally. For image sources deployed privately, you can deploy the image of Diving on a machine that can access the image source.

config

The config file is ~/.diving/config.yml, the options:

  • layer_path: The path of layer cache, default is ~/.diving/layers
  • layer_ttl: The ttl of layer, default is 90d. The layer will be purged if it is not accessed again for 90 days

terminal

Supports three data source modes analyze image. The specific form is as follows:

  • registry get image form docker registry or other registry
  • docker get image from local docker client
  • file get image for tar file
diving redis:alpine

diving quay.io/prometheus/node-exporter

diving docker://redis:alpine

diving file:///tmp/redis.tar

CI=true diving redis:alpine
  • Current Layer Contents only show the files of current layer
  • Press 1 only show the Modified/Removed files of current layer
  • Press 2 only show the files >= 1MB
  • Press Esc or 0 reset the view mode

web

docker run -d --restart=always \
  -p 7001:7001 \
  -v $PWD/diving:/home/rust/.diving \
  --name diving \
  vicanso/diving

It should be noted that it does not run as root, so the mounted directory needs to add the permission(r+w), otherwise it will fail to start.

Open http://127.0.0.1:7001/ in the browser.

About

Exploring each layer in a docker image, it's fast and simple

https://diving.npmtrend.com/

License:Apache License 2.0


Languages

Language:Rust 72.6%Language:TypeScript 23.2%Language:CSS 2.6%Language:Dockerfile 0.7%Language:Makefile 0.4%Language:HTML 0.3%Language:Shell 0.1%