News for hackers. Stuff that matters.
Re:Dive – A tool for exploring each layer in a Docker image by brunoqc on Sunday November 25, 2018 @07:28PM (#18530035)
Is there a tool to compare 2 or more images to check which layers they have in common?
Re:Dive – A tool for exploring each layer in a Docker image by bacongobbler on Sunday November 25, 2018 @07:56PM (#18530162)
There's no tool I'm aware of, but with experimental features enabled in the Docker CLI you can use `docker manifest inspect` on each image manifest and diff the content. e.g. `docker manifest inspect ubuntu:latest`.

This requires that you have logged in to the registry, pushed the image to the registry and have `docker pull` rights for the image. You could also run a registry locally, push your image there and inspect your registry's storage db. There's just no CLI command to do that.

Re:Dive – A tool for exploring each layer in a Docker image by brunoqc on Sunday November 25, 2018 @09:51PM (#18530671)
Thanks!
Re:Dive – A tool for exploring each layer in a Docker image by daveisfera on Monday November 26, 2018 @12:07AM (#18531207)
This used to be a tool to do it, but it hasn't been kept up to date with changes to image creation and storage. https://imagelayers.io
Re:Dive – A tool for exploring each layer in a Docker image by balibebas on Monday November 26, 2018 @02:34AM (#18531734)
Beyond Compare for Docker/Moby seems like an ideal use case for an inspection tool such as this. While space is cheap finding dbs which could be consolidated could have some tangible benefits for just about everyone.