Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/docker/ui/launch/ContainerLauncher.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/docker/ui/launch/ContainerLauncher.java b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/docker/ui/launch/ContainerLauncher.java
index 66275d9b47..8d13f965b0 100644
--- a/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/docker/ui/launch/ContainerLauncher.java
+++ b/containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/docker/ui/launch/ContainerLauncher.java
@@ -956,11 +956,12 @@ public class ContainerLauncher {
IDockerImageInfo imageInfo = connection.getImageInfo(image);
if (imageInfo == null) {
+ final String name = image;
Display.getDefault()
.syncExec(() -> MessageDialog.openError(
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),
DVMessages.getString(ERROR_LAUNCHING_CONTAINER),
- Messages.getFormattedString("ContainerLaunch.imageNotFound.error", image)));
+ Messages.getFormattedString("ContainerLaunch.imageNotFound.error", name)));
return;
}
@@ -1025,6 +1026,11 @@ public class ContainerLauncher {
final IDockerHostConfig hostConfig = hostBuilder.build();
+ if (image.equals(imageInfo.id())) {
+ IDockerImage dockerImage = ((DockerConnection) connection).getImage(image);
+ image = dockerImage.repoTags().get(0);
+ }
+
final String imageName = image;
final boolean keepContainer = keep;
final String consoleId = id;

Back to the top