Get container running by imageId only if running container can not be found only with image name
This commit is contained in:
parent
87c9d8f01c
commit
7c0b0ba9d3
@ -215,8 +215,7 @@ public class DockerManager {
|
||||
for (Container container : existingContainers) {
|
||||
if (container.getImage().startsWith(fullImageName)) {
|
||||
containerIds.add(container.getId());
|
||||
}
|
||||
if (container.getImageId().contains(fullImageName)) {
|
||||
} else if (container.getImageId().contains(fullImageName)) {
|
||||
containerIds.add(container.getId());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user