[ 
https://issues.apache.org/jira/browse/MESOS-2724?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14566104#comment-14566104
 ] 

Timothy Chen commented on MESOS-2724:
-------------------------------------

Changing cgroups underneath Mesos is actually a dangerous thing to do, since we 
assume Mesos manage all the cgroup settings and will freely overwrite it when 
it needs to, also it uses cgroup settings to report usage and does updates.

Either way a hook that is invoked post launch makes sense, just that the 
actions you do is your own risk and your own responsibility to maintain it 
across mesos changes.


> Support running custom commands on slaves when launcing a docker container
> --------------------------------------------------------------------------
>
>                 Key: MESOS-2724
>                 URL: https://issues.apache.org/jira/browse/MESOS-2724
>             Project: Mesos
>          Issue Type: Improvement
>          Components: framework
>            Reporter: chenzongzhi
>            Assignee: Shuai Lin
>
> gWe use mesos + marathon to build our Paas platform. We meet a problem
> We want to execute some command after the docker container started. such as 
> we want change the cgroup setting.
> We know We can execute some command in the  docker container, but we want 
> execute command in the host machine.
> Anyone know how to implement it or any good idea?
>     Thanks



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to