【问题标题】:Getting error while running the Mesos container in mesos cluster using marathon使用马拉松在 mesos 集群中运行 Mesos 容器时出错
【发布时间】:2017-01-11 11:34:31
【问题描述】:
"container": {
    "type": "MESOS",
    "docker": {
      "image": "redis",
      "forcePullImage": false
    }
  }
  1. 上例中容器类型为 Mesos..但再次指定“docker”镜像...对于使用通用容器或 mesos 容器,是否需要安装 docker?
  2. 因为,当我尝试在 mesos 中使用类型为“mesos”的容器运行示例时,我收到如下错误:

不支持的容器镜像:DOCKER。

我还没有安装docker。

  1. 我使用的是Mesos1.1版本

【问题讨论】:

  • 标题与您在问题正文中写的内容有什么关系?这很难理解……而且,您的 Marathon 应用定义不完整
  • 谢谢,我需要 docker 来运行具有容器类型的 json:Mesos 集群中的 Mesos...

标签: docker containers mesos marathon mesosphere


【解决方案1】:

有关如何使用 Mesos UCR 运行 Docker 映像的有效示例,请参阅 https://mesosphere.github.io/marathon/docs/native-docker.html#mesos-containerizer-and-universal-container-runtime

{
    "id": "mesos-docker",
    "container": {
        "docker": {
            "image": "mesosphere/inky"
        },
        "type": "MESOS"
    },
    "args": ["hello"],
    "cpus": 0.2,
    "mem": 16.0,
    "instances": 1
}

为此,您需要 Marathon >= 1.3.0 和 Mesos >= 1.0。

【讨论】:

  • 当我运行上面的例子时..我收到以下错误:不支持的容器映像:docker..所以我问,我们是否需要 docker,也可以运行 mesos 类型的容器..
  • 看看mesos.apache.org/documentation/latest/mesos-containerizer(“Docker 运行时隔离器”部分)
  • @User12345 从你得到的结果来看,我猜你没有启用“docker/runtime”隔离器。
猜你喜欢
  • 1970-01-01
  • 2016-10-15
  • 2015-10-07
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-04-21
相关资源
最近更新 更多