How Can I Identify the Base Images for Docker Images?

0
0
Asked By CuriousExplorer93 On

Hey everyone! I'm trying to map out the dependencies of images within the Docker ecosystem alongside their versions. From what I've gathered, the process involves compiling a list of all images and their corresponding hashes, then utilizing "docker history" to inspect the layers of these images. This should allow me to cross-reference with a database of hashes to discover all the base image names and tags. However, I'm hopeful there is a more streamlined method available that doesn't require using the unfree Docker Scout. Any insights on this? I'm particularly interested in uncovering not just the direct base images, but also the base of base images. Eventually, I'd like to use this information to create a free graph database for community analysis.

2 Answers

Answered By ImageHunter007 On

One quick tip: you might want to check GitHub for Dockerfiles related to the images you’re investigating. Developers often include those, which could help you trace back to the base images. But I get it—you want a comprehensive map, not just snippets here and there. There’s got to be a smarter way to link image layers to names!

Answered By DataNinja42 On

If I were in your position, I'd structure things like this: start by setting up a database linking hashes to image names and tags. Then, gather data from Docker Hub for widely used base images like Ubuntu, and populate that into your database. After that, you'd compare your target images against this database to identify known base images. It’s not perfect, of course, and I’m sure there’s a more elegant solution out there, but it’s a solid start!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.