Pass --ulimit nproc via Marathon

297 views
Skip to first unread message

Paul Bell

unread,
Feb 12, 2016, 2:26:22 PM2/12/16
to marathon-framework
Hi All,

"docker run" supports "docker run --ulimit nproc=N"

Is there a way to pass both "ulimit" and its "nproc=N" value via Marathon's POST /v2/apps API?

Thanks.

-Paul

Aaron

unread,
Feb 13, 2016, 1:42:13 PM2/13/16
to marathon-framework
You should be able to pass it in the "parameters" subsection of the "container" section.

      "parameters" : [
        { "key" : "ulimit", "value" : "nproc=N" }
      ]

Paul Bell

unread,
Feb 14, 2016, 1:44:06 PM2/14/16
to marathon-framework
Can anyone provide some help with this?

Apparently, there's a long history of ulimit unpleasantness with Docker containers. It's ultimate solution appears to be via "docker run --ulimit nproc=N". But I need to be able to convey this via Marathon.

Thanks.

-Paul

Philip Norman

unread,
Feb 15, 2016, 11:07:40 AM2/15/16
to marathon-framework
Hi Paul,

Aaron's reply upthread is correct - container.parameters gets passed all the way through to Docker. 

Philip
Reply all
Reply to author
Forward
0 new messages