Drop memory-cg.conf
into /etc/init
. The upstart job will ensure
that the memory cgroup is configured with hierarchical stats tracking
before systemd-logind and/or docker start creating cgroups.
(Yes, it's mostly a crude hack with an obscure way of syncing with cgroup-lite. That can't be helped, though)