Skip to content

orisano/dlayer

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

dlayer

dlayer is docker layer analyzer.

Installation

go install github.com/orisano/dlayer
# go get github.com/orisano/dlayer

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

Author

Nao Yonashiro (@orisano)

License

MIT