Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread haosdent
could use `cat /proc/self/mountinfo` to check this. On Wed, Oct 28, 2015 at 10:26 AM, haosdent wrote: > maybe it is because of you cgroup mount point is /sys/fs/cgroup, not > /cgroup > > On Wed, Oct 28, 2015 at 10:25 AM, Klaus Ma wrote: > >> It worked by adding -v /sys:/sys, but not sure whethe

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread haosdent
maybe it is because of you cgroup mount point is /sys/fs/cgroup, not /cgroup On Wed, Oct 28, 2015 at 10:25 AM, Klaus Ma wrote: > It worked by adding -v /sys:/sys, but not sure whether any security > concern. > > On Wed, Oct 28, 2015 at 10:22 AM, Klaus Ma wrote: > >> :(. It does not work. Both l

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread Klaus Ma
It worked by adding -v /sys:/sys, but not sure whether any security concern. On Wed, Oct 28, 2015 at 10:22 AM, Klaus Ma wrote: > :(. It does not work. Both linux & posix are tested. And according to the > description of launcher, linux is necessary for docker. It's strange that > /cgroup is empt

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread Klaus Ma
:(. It does not work. Both linux & posix are tested. And according to the description of launcher, linux is necessary for docker. It's strange that /cgroup is empty, but I can start mesos-slave with docker container outside the docker. On Wed, Oct 28, 2015 at 9:54 AM, haosdent wrote: > try add -

Re: How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread haosdent
try add -e MESOS_LAUNCHER=posix On Oct 28, 2015 9:49 AM, "Klaus Ma" wrote: > Hi team, > > I'd like to start a mesos-agent in Docker with docker container, I can run > sleep docker within a ubuntu docker with following args; but I can not > start an Mesos Agent. Refer to the following for the deta

How to enable docker container in Mesos-Agent within a Docker

2015-10-27 Thread Klaus Ma
Hi team, I'd like to start a mesos-agent in Docker with docker container, I can run sleep docker within a ubuntu docker with following args; but I can not start an Mesos Agent. Refer to the following for the detail of output: $sudo docker run --privileged --net=host -v /cgroup:/cgroup -v /var/run