Uploaded image for project: 'Marathon'
  1. Marathon
  2. MARATHON-3274

can't get host ip in docker container managed by marathon and mesos

    Details

    • Type: Task
    • Status: Resolved
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      We need get host ip in docker container for service discovery. And with docker cmd, we can use docker cmd like 'docker run -d -e HOST_IP=ip -4 addr | grep eth | grep -Po 'inet \K[\d.]+' | sed -n '1p''. But with marathon, how to get host ip in docker container?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              GitHub_zjyzju Zhang junyong (Inactive)
              Team:
              Orchestration Team
              Watchers:
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: