I have a set of Docker base images within my organization. I have one per technology stack (Java or Python for example). I can also build these base images for a specific version of Java and push it to the artifactory.
We will then have different projects who will use these base images and construc their Dockerfile. We now want to somehow ensure during the build process of those projects that they did infact use the base image that I created in their Dockerfile!
For example., if the image that I created for Java on Alipine is called
java-8-alpine-3
Then the project that would need a Java runtime should have this as their first line:
FROM java-8-alipne-3
How do I ensure that this is the case? In other words, how can I inspect the images to check for usage of such properties?