Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Johnston2019-06-11 14:34:42 -0400
committerJeff Johnston2019-06-11 17:25:01 -0400
commite84c52c714d44181cdcadf0b8d25623f6220cdbb (patch)
treec1c6d8de93aeac1f3d17f5484f902d4da1060c6f
parent3d699745a08141f9aa9138eefb20ac6c351a4be8 (diff)
downloadorg.eclipse.linuxtools-e84c52c714d44181cdcadf0b8d25623f6220cdbb.tar.gz
org.eclipse.linuxtools-e84c52c714d44181cdcadf0b8d25623f6220cdbb.tar.xz
org.eclipse.linuxtools-e84c52c714d44181cdcadf0b8d25623f6220cdbb.zip
Bug 546505 - "Permission denied" on building CDT project in container
- in ContainerLauncher.runCommand(), perform a 100 ms delay after creating container to allow :Z setting to be processed for build directory Change-Id: I2966668d5ec19c491c2470a99dec21b4ed1699fa Reviewed-on: https://git.eclipse.org/r/143755 Tested-by: Linux Tools Bot <linuxtools-bot@eclipse.org> Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
-rw-r--r--containers/org.eclipse.linuxtools.docker.ui/src/org/eclipse/linuxtools/docker/ui/launch/ContainerLauncher.java2
1 files changed, 2 insertions, 0 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 e77d1fcd86..66275d9b47 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
@@ -1764,6 +1764,8 @@ public class ContainerLauncher {
try {
containerId = ((DockerConnection) connection)
.createContainer(config, hostConfig, null);
+ // Add delay after creating container to fix bug 546505
+ Thread.sleep(100);
} catch (DockerException | InterruptedException e) {
errMsgHolder.setErrorMessage(e.getMessage());
return null;

Back to the top