Implement podman run option --cgroup-parent

Example:

sudo /usr/local/bin/podman run --cgroup-parent=/zzz fedora cat /proc/self/cgroup

Signed-off-by: Jhon Honce <jhonce@redhat.com>

Closes: #370
Approved by: rhatdan
This commit is contained in:
Jhon Honce
2018-02-20 10:29:41 -07:00
committed by Atomic Bot
parent f1f0f37dc1
commit 3f004df384
4 changed files with 9 additions and 3 deletions

View File

@ -38,7 +38,7 @@ const (
)
// CgroupParent is the default prefix to a cgroup path in libpod
var CgroupParent = "/libpod_parent"
var DefaultCgroupParent = "/libpod_parent"
// LinuxNS represents a Linux namespace
type LinuxNS int