小编ham*_*mmi的帖子

如何在马拉松比赛中使用音量

我正在使用mesos + marathon + docker很长一段时间但我在某个时候陷入了困境.目前我尝试处理持久性容器,我尝试使用"volume-from"参数,但我无法使其工作,因为我不知道如何弄清楚要放入的数据框的名称它作为json的关键.我用这里的例子试了一下

    {
    "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
}
Run Code Online (Sandbox Code Playgroud)

我真的很感激任何一种帮助:-)

marathon docker mesos mesosphere

10
推荐指数
1
解决办法
4212
查看次数

标签 统计

docker ×1

marathon ×1

mesos ×1

mesosphere ×1