Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Won't Fix
-
2.7.1
-
None
Description
In current DockerContainerExecutor, the "docker run" command has fixed parameters:
String commandStr = commands.append(dockerExecutor)
.append(" ")
.append("run")
.append(" ")
.append("--rm --net=host")
.append(" ")
.append(" --name " + containerIdStr)
.append(localDirMount)
.append(logDirMount)
.append(containerWorkDirMount)
.append(" ")
.append(containerImageName)
.toString();
For example, it is not flexible if users want to start a docker container with attaching extra volume(s) and other "docker run" parameters.