dotcloud/docker — pull request #464 by tianon (2013-04-23 07:10:44+00:00)
Title: Update FindCgroupMountpoint to be more forgiving

On Gentoo, the memory cgroup is mounted at /sys/fs/cgroup/memory, but the mount line looks like the following:
memory on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)

(note that the first word on the line is "memory", not "cgroup", but the other essentials are there, namely the type of cgroup and the memory mount option)

This is as I mentioned in [this comment](https://github.com/dotcloud/docker/issues/313#issuecomment-16750517), but didn't fully realize what was going on until today.