summaryrefslogtreecommitdiff
path: root/libpod/define
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-05-09 23:06:51 +0200
committerGitHub <noreply@github.com>2020-05-09 23:06:51 +0200
commitdc7d6f4818f4b986cfd15208d53f6765d8fad986 (patch)
treefe6e50f86caace33f971446d2356dffecaea5c4c /libpod/define
parent3ff96383f306cecfeed75986078144ad757e3d70 (diff)
parent8238b7e70688e637d58305287a19e4080f619587 (diff)
downloadpodman-dc7d6f4818f4b986cfd15208d53f6765d8fad986.tar.gz
podman-dc7d6f4818f4b986cfd15208d53f6765d8fad986.tar.bz2
podman-dc7d6f4818f4b986cfd15208d53f6765d8fad986.zip
Merge pull request #6152 from mheon/fix_pod_join_cgroupns
Fix bug where pods would unintentionally share cgroupns
Diffstat (limited to 'libpod/define')
-rw-r--r--libpod/define/container_inspect.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/define/container_inspect.go b/libpod/define/container_inspect.go
index e6a19e5b4..27ada8706 100644
--- a/libpod/define/container_inspect.go
+++ b/libpod/define/container_inspect.go
@@ -228,6 +228,13 @@ type InspectContainerHostConfig struct {
// include a Mounts field in inspect.
// Format: <src>:<destination>[:<comma-separated options>]
Binds []string `json:"Binds"`
+ // CgroupMode is the configuration of the container's cgroup namespace.
+ // Populated as follows:
+ // private - a cgroup namespace has been created
+ // host - No cgroup namespace created
+ // container:<id> - Using another container's cgroup namespace
+ // ns:<path> - A path to a cgroup namespace has been specified
+ CgroupMode string `json:"CgroupMode"`
// ContainerIDFile is a file created during container creation to hold
// the ID of the created container.
// This is not handled within libpod and is stored in an annotation.