mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-03 11:20:39 -06:00
Merge pull request #310 from dougwettlaufer/docker-metrics-no-repo
Handle listing docker images without repo tags
This commit is contained in:
commit
ff591c4cf4
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user