p8952 / bocker

Docker implemented in around 100 lines of bash
https://www.p8952.info/
GNU General Public License v3.0
11.26k stars 715 forks source link

cgroup support #14

Closed Fusion closed 9 years ago

Fusion commented 9 years ago

A new pull request, to keep features separate.

From my previous request:

cgroups support. Not all of cgroups's toolbox, mind you, but enough to actually run in separate groups, allowing an admin to then fine tune cpu resources, etc. Blame reddit commenters for this!

It should degrade gracefully (no cgroups, no problem) and while I was at it I made a small modification to 'ps' so that it would display the containers based on time of creation rather than name. Feel free to not merge it if it goes against your design.