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

Shuai Lin commented on MESOS-2724:
----------------------------------

I have read the the [modules 
docs|http://mesos.apache.org/documentation/latest/modules/], the hooks module 
seems to be the most suitable one. However, the current [Hook 
interface|https://github.com/apache/mesos/blob/master/include/mesos/hook.hpp#L31]
 does not have a available callback which is called when a container is 
launched.


So I guess we have two options:

- Add a callback to the {{Hook}} class which is called after a container is 
launched, with the container info as the arguments.
- Or we can make use of the {{Anonymous}} module. But I haven't come into an 
idea about how to do that.

[~tnachen] what do you think?

> 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