Home

Awesome

dlayer

dlayer is docker layer analyzer.

Installation

go install github.com/orisano/dlayer@latest

or

docker pull orisano/dlayer

How to use

$ dlayer -h
Usage of dlayer:
  -a	show details
  -d int
    	max depth (default 8)
  -f string
    	image.tar path (default "-")
  -i	interactive mode
  -l int
    	screen line width (default 100)
  -n int
    	max files (default 100)
# recommended
docker save image:tag | dlayer -i

or

docker save image:tag | dlayer -n 100 | less

or

docker save -o image.tar image:tag
dlayer -f image.tar -n 1000 -d 10 | less

or

# using docker
docker save -o image.tar image:tag
docker run -v $PWD:/workdir -it orisano/dlayer -i -f /workdir/image.tar

screenshot

Related Projects

Author

Nao Yonashiro (@orisano)

License

MIT