dlayer is docker layer analyzer.
go install github.com/orisano/dlayer@latest
or
docker pull orisano/dlayer
$ 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
- orisano/bctx - for build context analysis
Nao Yonashiro (@orisano)
MIT