You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mesos.apache.org by Marc Roos <M....@f1-outsourcing.eu> on 2019/07/16 21:32:59 UTC
Some help with syntax of volume
Marathon/mesos complains I should add containerPath, hostPath and mode,
while I only would like to have the volume section with HOST_PATH.
{
"id": "/test",
"user": "nobody",
"cpus": 1,
"mem": 256,
"disk": 0,
"instances": 1,
"acceptedResourceRoles": ["*"],
"backoffSeconds": 10,
"container": {
"type": "MESOS",
"docker": {
"image": "test",
"credential": null,
"forcePullImage": true
},
"volumes": [
{
"containerPath": "/tmp",
"hostPath": "/tmp",
"mode": "RW",
"volume" : {
"container_path": "/usr/local/etc",
"source": {
"type": "HOST_PATH",
"host_path": { "path": "/tmp/etc" }
},
"mode": "RW" }
}]
}
}