How to set docker run arguments on marathon spec How to set docker run arguments on marathon spec docker docker

How to set docker run arguments on marathon spec


It is required for docker containers in their marathon spec to specify a boolean value for oom-kill-disable flag for executor to run properly.

So the spec would include:

"parameters": [            { "key": "oom-kill-disable", "value": "true" }        ]


I'm not quite sure if you can pass an empty value in this case, but you could go with something like this:

"container": {    "type": "DOCKER",    "docker": {        "network": "HOST",        "image": "your/image",        "parameters": [            { "key": "oom-kill-disable", "value": "" }        ]    }}

You may read a little bit more here in "Privileged Mode and Arbitrary Docker Options" section.