Handle listing docker images without repo tags

This commit is contained in:
Doug Wettlaufer 2021-04-28 09:50:59 -05:00
parent 71939a17f1
commit a5d90b7868

View File

@ -228,6 +228,10 @@ public class DockerHelper {
List<String> validRepoTags = tags.stream().map(s -> label + ":" + s).collect(Collectors.toList());
for (Image image : images) {
String[] foundRepoTags = image.getRepoTags();
if (foundRepoTags == null) {
continue;
}
for (String foundRepoTag : foundRepoTags) {
for (String validRepoTag : validRepoTags) {
if (foundRepoTag.equals(validRepoTag)) {