Class DockerAncestorFingerprintFacet

All Implemented Interfaces:
ExtensionPoint

public class DockerAncestorFingerprintFacet extends DockerRunPtrFingerprintFacet
Facet representing the fact that this Docker image was derived from another. This facet would be added to the fingerprint corresponding to an image built using a Dockerfile. getAncestorImageIds() indicates the ID of the image specified in the FROM instruction.
See Also:
  • Method Details

    • getAncestorImageIds

      @NonNull public Set<String> getAncestorImageIds()
      Gets the ancestor image that this image was built from. In principle there could be several, in case distinct Dockerfiles used distinct FROM images, yet wound up producing the same result (because some corresponded to intermediate layers which were cached). This is unlikely but possible. The set may be empty in case you built a base image (FROM scratch), in which case there is no ID for the ancestor.
      Returns:
      a set of 64-digit IDs, typically a singleton