【问题标题】:How to list Docker containers of a Mesos Marathon Application?如何列出 Mesos Marathon 应用程序的 Docker 容器?
【发布时间】:2015-12-22 03:40:55
【问题描述】:

我了解在 Mesos 上使用 thisthis 作为 Marathon 应用程序运行 Docker 容器的基本概念。我有两个问题:

  1. Mesos/Marathon 是否有一个 REST API 来列出由 Marathon 应用程序启动的 Docker 容器?我经历了REST API reference,但找不到这样做的方法。我正在寻找的是 Mesos 集群/网络中 Docker 容器的 IP 地址。

  2. Mesos 是否为 Docker 提供了类似 SDN 的 Flannel 或者它只是容器将为每个 Mesos 从站获取的本地 IP 地址?我检查了this,但无法弄清楚。

非常感谢!

【问题讨论】:

    标签: mesos mesosphere marathon


    【解决方案1】:

    看看https://mesosphere.github.io/marathon/docs/generated/api.html#v2_tasks_get

    您可以在此处看到任务对象包含hostports 属性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-03-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多