【发布时间】:2015-04-25 05:11:46
【问题描述】:
我正在使用 Apache Mesos + Marathon + Zookeeper 来部署我的 rails 应用程序。 我需要在 Rails 应用程序和其他容器之间共享数据。我在这里找到了一些关于马拉松的参考,如下所示:
marathon/docs/native-docker.html
{
"id": "privileged-job",
"container": {
"docker": {
"image": "mesosphere/inky"
"privileged": true,
"parameters": [
{ "key": "hostname", "value": "a.corp.org" },
{ "key": "volumes-from", "value": "another-container" },
{ "key": "lxc-conf", "value": "..." }
]
},
"type": "DOCKER",
"volumes": []
},
"args": ["hello"],
"cpus": 0.2,
"mem": 32.0,
"instances": 1
}
但是我找不到找到我的 rails 应用程序容器名称的方法,因为 marathon 使用以下格式分配名称:“mesos-uuid”。有什么办法解决吗?或其他方式与 marathon 共享容器中的容量?
【问题讨论】:
标签: docker mesos mesosphere marathon