4 ms·
I use the tool dive for that. Also to debug my docker builds. You can even run it inside docker (if you expose the docker socket) https://github.com/wagoodman/
by andix 6y ago
I use the tool dive for that. Also to debug my docker builds. You can even run it inside docker (if you expose the docker socket)
https://github.com/wagoodman/dive https://github.com/wagoodman/dive
- raesene9 6y agoIn addition to Dive, there's also Whaler https://github.com/P3GLEG/Whaler https://github.com/P3GLEG/Whaler which will print out a Dockerfile from the image, based on the metadata in the image. You can also use Portainer https://www.portainer.io/ https://www.portainer.io/ which will show the image layer details in the images section.
- 1f60c 6y ago+1 for Dive. Dive will even show you the exact command (directive?) that resulted in a layer being added. It also lets you browse the file system at every step.