diff --git a/src/main/java/de/zalando/ep/zalenium/container/DockerContainerClient.java b/src/main/java/de/zalando/ep/zalenium/container/DockerContainerClient.java index 5b4c705d1a..2c60c5277a 100644 --- a/src/main/java/de/zalando/ep/zalenium/container/DockerContainerClient.java +++ b/src/main/java/de/zalando/ep/zalenium/container/DockerContainerClient.java @@ -263,7 +263,9 @@ public void executeCommand(String containerId, String[] command, boolean waitFor public String getLatestDownloadedImage(String imageName) { List images; try { - images = dockerClient.listImages(DockerClient.ListImagesParam.byName(imageName)); + images = dockerClient.listImages(DockerClient.ListImagesParam.allImages()) + .stream().filter(image -> image.repoTags().stream().anyMatch(i -> i.contains(imageName))) + .collect(Collectors.toList()); if (images.isEmpty()) { logger.error(nodeId + " A downloaded docker-selenium image was not found!"); return imageName;