I'm trying to run mesos-slave inside Docker container, but it can't start
due to problem with mounting cgroups.

I'm using:
Kernel Version: 3.13.0-32-generic
Operating System: Ubuntu 14.04.1 LTS
Docker: 1.2.0(commit fa7b24f)
Mesos: 0.20.0

Following error appears:
I0923 07:11:20.921475    19 main.cpp:126] Build: 2014-08-22 05:04:26 by root
I0923 07:11:20.921608    19 main.cpp:128] Version: 0.20.0
I0923 07:11:20.921620    19 main.cpp:131] Git tag: 0.20.0
I0923 07:11:20.921628    19 main.cpp:135] Git SHA:
f421ffdf8d32a8834b3a6ee483b5b59f65956497
Failed to create a containerizer: Could not create DockerContainerizer:
Failed to find a mounted cgroups hierarchy for the 'cpu' subsystem; you
probably need to mount cgroups manually!

I'm running docker container with command:
docker run --name mesos-slave --privileged --net=host -v
/var/run/docker.sock:/var/run/docker.sock -v
/var/lib/docker:/var/lib/docker -v
/usr/local/bin/docker:/usr/local/bin/docker gregory90/mesos-slave
--containerizers=docker,mesos --master=zk://localhost:2181/mesos
--ip=127.0.0.1

Everything is running on single machine.
Everything works as expected when mesos-slave is run outside docker
container.

I'd appreciate some help.

Reply via email to