Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3611 Support Docker Containers In LinuxContainerExecutor
  3. YARN-8027

Setting hostname of docker container breaks for --net=host in docker 1.13

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0, 3.0.3
    • yarn
    • Reviewed

    Description

      In DockerLinuxContainerRuntime:launchContainer, we are adding the --hostname argument to the docker run command to set the hostname in the container to something like:  ctr-e84-1520889172376-0001-01-000001.

      This does not work when combined with the --net=host command line option in Docker 1.13.1. It causes multiple failures when the client tries to resolve the hostname and it fails.

      We haven't seen this before because we were using docker 1.12.6 which seems to ignore --hostname when you are using --net=host.

      Attachments

        1. YARN-8027-branch-3.0.002.patch
          8 kB
          Jim Brennan
        2. YARN-8027-branch-3.0.001.patch
          8 kB
          Jim Brennan
        3. YARN-8027.001.patch
          15 kB
          Jim Brennan

        Issue Links

          Activity

            People

              jbrennan Jim Brennan
              jbrennan Jim Brennan
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: