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
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!
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
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically