hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen He (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-3988) DockerContainerExecutor should allow user specify "docker run" parameters
Date Tue, 28 Jul 2015 18:50:05 GMT

     [ https://issues.apache.org/jira/browse/YARN-3988?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chen He updated YARN-3988:
--------------------------
    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. 

  was:
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. 


> DockerContainerExecutor should allow user specify "docker run" parameters
> -------------------------------------------------------------------------
>
>                 Key: YARN-3988
>                 URL: https://issues.apache.org/jira/browse/YARN-3988
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: nodemanager
>    Affects Versions: 2.7.1
>            Reporter: Chen He
>            Assignee: Chen He
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message