crosbymichael/docker — pull request #11 by alexlarsson (2014-02-21 15:35:39+00:00)
Title: Systemd implementation of scgroups

This uses the systemd apis to set up a scope for the container.
Not only does this give the cgroup properties, but it exposes the container as a systemd unit which you can see and manage with systemd tools, as well as get info about in other tools like ps::
```
# ps -eo pid,user,args,unit --sort user | grep koye
19277 root /bin/bash docker-koye.scope
19496 root grep --color=auto koye session-1.scope
# systemctl status docker-koye.scope
docker-koye.scope - docker container docker-koye
Loaded: loaded (/run/systemd/system/docker-koye.scope; static)
Drop-In: /run/systemd/system/docker-koye.scope.d
└─90-Description.conf, 90-DeviceAllow.conf, 90-DevicePolicy.conf, 90-MemoryLimit.conf, 90-Slice.conf
Active: active (running) since fre 2014-02-21 16:28:13 CET; 6min ago
CGroup: /system.slice/system-docker.slice/docker-koye.scope
└─19277 /bin/bash

feb 21 16:28:13 localhost.localdomain systemd[1]: Started docker container docker-koye.

```