|
@@ -145,7 +145,7 @@ public class DockerImpl implements Docker {
|
|
|
.exec();
|
|
.exec();
|
|
|
|
|
|
|
|
for (Container container : list) {
|
|
for (Container container : list) {
|
|
|
- if (Arrays.stream(container.getNames()).collect(Collectors.toSet()).contains(containerName)) {
|
|
|
|
|
|
|
+ if (Arrays.stream(container.getNames()).collect(Collectors.toSet()).contains("/"+containerName)) {
|
|
|
return container.getId();
|
|
return container.getId();
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|