Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2466 Umbrella issue for Yarn launched Docker Containers
  3. YARN-3988

DockerContainerExecutor should allow user specify "docker run" parameters

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.7.1
    • None
    • nodemanager

    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.

      Attachments

        Activity

          People

            airbots Chen He
            airbots Chen He
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: