Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3159

DOCKER_IMAGE_PATTERN should support multilayered path of docker images

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: nodemanager
    • Labels:

      Description

      Currently, DOCKER_IMAGE_PATTERN in DockerContainerExecutor can only match docker images with the path like "sequenceiq/hadoop-docker:2.6.0", which has only 1 "/" in the path.

      public static final String DOCKER_IMAGE_PATTERN = "^(([\\w\\.-]+)(:\\d+)*\\/)?[\\w\\.:-]+$";
      

      In our cluster, the image name have multi layers, such as "docker-registry.qiyi.virtual:8080/cloud/hadoop-docker:2.6.0", which is workable when using "docker pull IMAGE_NAME", but can not pass the check of image name in saneDockerImage().

        Attachments

        1. YARN-3159.patch
          1 kB
          Leitao Guo

          Activity

            People

            • Assignee:
              guoleitao Leitao Guo
              Reporter:
              guoleitao Leitao Guo
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: