Make CGroups cleanup optional on whether they exist

Signed-off-by: Matthew Heon <matthew.heon@gmail.com>

Closes: #981
Approved by: baude
This commit is contained in:
Matthew Heon
2018-06-21 11:09:17 -04:00
committed by Atomic Bot
parent d2f981fd0b
commit c3602075ec
5 changed files with 36 additions and 7 deletions

View File

@ -167,6 +167,9 @@ type containerState struct {
// the path of the file on disk outside the container
BindMounts map[string]string `json:"bindMounts,omitempty"`
// CgroupCreated indicates that the container has created a cgroup
CgroupCreated bool `json:"cgroupCreated,omitempty"`
// UserNSRoot is the directory used as root for the container when using
// user namespaces.
UserNSRoot string `json:"userNSRoot,omitempty"`