public class DockerAncestorFingerprintFacet extends DockerRunPtrFingerprintFacet
Dockerfile.
getAncestorImageIds() indicates the ID of the image specified in the FROM instruction.| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getAncestorImageIds()
Gets the ancestor image that this image was built from.
|
add, addFor, getImageId, getRangeSet, getRangeSet, getUsages@Nonnull public Set<String> getAncestorImageIds()
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.Copyright © 2016–2019. All rights reserved.