google / lmctfy

lmctfy is the open source version of Google’s container stack, which provides Linux application containers.
Other
3.41k stars 237 forks source link

Cannot create containers #29

Closed sk- closed 10 years ago

sk- commented 10 years ago

When trying to create a container I get the following error

$ sudo lmctfy create test "memory: {limit: 1000000}"
Command exited with error message: 5: Expected cgroup "/sys/fs/cgroup/test" to exist.
try using --stderrthreshold to get more info

That message is weird, as it is part of the Get method.

Even if I manually create /sys/fs/cgroup/test then I get the following error:

$ sudo lmctfy create test "memory: {limit: 1000000}"
Command exited with error message: 6: Can't create existing container "/test"
try using --stderrthreshold to get more info

Note: I'm running this on Debian and followed what was suggested in #8. However, my init command did not succeed with the defaults parametersand had to initialize it with init "", which worked.

The output of /proc/cgroups is:

$ cat /proc/cgroups 
#subsys_name    hierarchy   num_cgroups enabled
cpuset  1   3   1
cpu 1   3   1
cpuacct 1   3   1
memory  1   3   1
devices 1   3   1
freezer 1   3   1
net_cls 1   3   1
blkio   1   3   1
perf_event  1   3   

Mounted cgroups:

$ cat /proc/mounts | grep cgroup
cgroup /sys/fs/cgroup cgroup rw,relatime,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,cpuset 0 0