I have come across a scenario where I need to see the image contents.
Yes, I want to view the image content with hierarchy.
Then I found this dive, which has done it beautifully.
Install on Ubuntu PC
- # wget https://github.com/wagoodman/dive/releases/download/v0.9.2/dive_0.9.2_linux_amd64.deb
- # sudo apt install ./dive_0.9.2_linux_amd64.deb
Usage
- Get the docker images list
- # docker image list
- Choose the image which you want to explore by copying the "Repository" name
- Run the command
- # dive
- It takes some time to analyse and display the image contents in hierarchical manner.
- Of the left side, it will have the image layers
- Select the appropriate image layer with up/down arrow keys
- By pressing the "Tab" you will be able to switch to right side view where your files are available
- Use space to expand/collapse the folder
- Dive will display each folder size
- See the sample docker image contents with dive below
- To quit/exit from the dive, use Ctrl+C
Hope this is helpful
Please send your feedback and comments to psrdotcom@gmail.com
No comments:
Post a Comment