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

Support trust top-level image like "centos" when "library" is configured in "docker.trusted.registries"

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: None
    • Labels:

      Description

      There are some missing cases that we need to catch when handling "docker.trusted.registries".

      The container-executor.cfg configuration is as follows:

      docker.trusted.registries=tangzhankun,ubuntu,centos

      It works if run DistrubutedShell with "tangzhankun/tensorflow"

      "yarn ... -shell_env YARN_CONTAINER_RUNTIME_TYPE=docker -shell_env YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=tangzhankun/tensorflow
      

      But run a DistrubutedShell job with "centos", "centos[:tagName]", "ubuntu" and "ubuntu[:tagName]" fails:
      The error message is like:

      "image: centos is not trusted"
      

      We need better handling the above cases.

        Attachments

        1. YARN-8927-trunk.002.patch
          4 kB
          Zhankun Tang
        2. YARN-8927-trunk.001.patch
          4 kB
          Zhankun Tang

          Issue Links

            Activity

              People

              • Assignee:
                tangzhankun Zhankun Tang
                Reporter:
                tangzhankun Zhankun Tang
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: