Search code examples
dockermesosmarathon

How to set docker run arguments on marathon spec


I have been using docker to run images along with some options like:

docker run --net host --oom-kill-disable -d -p <port>:<port> image

How do I set values like --oom-kill-disable on marathon?


Solution

  • 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" }
            ]