Monday, January 14, 2013

Mounting cgroup file system

It is a simple command:

  • sudo mount -t cgroup cgroup /cgroup

This will get you a cgroup file system mounted: lxc will use this file system when you create new containers, for its own cgroup hierarchy. It will also use this file system hierarchy to install cgroup files per container. When a container is stopped these cgroup files for the container are removed from the "lxc" hierarchy in /cgroup.

No comments: