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 <[email protected]> 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 <[email protected]> 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 empty, but I can start mesos-slave with docker container outside
>> the docker.
>>
>> On Wed, Oct 28, 2015 at 9:54 AM, haosdent <[email protected]> wrote:
>>
>>> try add -e MESOS_LAUNCHER=posix
>>> On Oct 28, 2015 9:49 AM, "Klaus Ma" <[email protected]> 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 detail of output:
>>>>
>>>> $sudo docker run --privileged --net=host -v /cgroup:/cgroup -v
>>>> /var/run/docker.sock:/var/run/docker.sock -v `which
>>>> docker`:/usr/local/bin/docker mesostest/mesos mesos-slave
>>>> --master=zk://xxxxx:2181/mesos --containerizers=docker,mesos
>>>>
>>>> ​I1028 01:43:38.415841     1 main.cpp:190] Build: 2015-10-26 19:18:04
>>>> by engbuild
>>>> I1028 01:43:38.416102     1 main.cpp:192] Version: 0.26.0
>>>> I1028 01:43:38.416353     1 main.cpp:199] Git SHA:
>>>> e3e24f32a0e4b89dee416969c5bc67ae9742007c
>>>> Failed to create a containerizer: Could not create DockerContainerizer:
>>>> Failed to create docker: Failed to find a mounted cgroups hierarchy for the
>>>> 'cpu' subsystem; you probably need to mount cgroups manually
>>>> ​
>>>>
>>>> --
>>>> ​Klaus​
>>>>
>>>> <http://k82.me>
>>>>
>>>
>>
>>
>> --
>> Da (Klaus), Ma (马达) | PMP® | Advisory Software Engineer
>> Platform Symphony/DCOS Development & Support, STG, IBM GCG
>> +86-10-8245 4084 | [email protected] | http://k82.me
>>
>
>
>
> --
> Da (Klaus), Ma (马达) | PMP® | Advisory Software Engineer
> Platform Symphony/DCOS Development & Support, STG, IBM GCG
> +86-10-8245 4084 | [email protected] | http://k82.me
>



-- 
Best Regards,
Haosdent Huang

Reply via email to