From 87f90ce14abf36fbf85f6128b3024ea89a44d670 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sat, 1 Sep 2018 12:51:00 -0400 Subject: Fix pod sharing for utsmode We should be sharing cgroups namespace by default in pods uts namespace sharing was broken in pods. Create a new libpod/pkg/namespaces for handling of namespace fields in containers Signed-off-by: Daniel J Walsh Closes: #1418 Approved by: mheon --- cmd/podman/shared/pod.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd/podman/shared/pod.go') diff --git a/cmd/podman/shared/pod.go b/cmd/podman/shared/pod.go index 1a14b3777..badc7a837 100644 --- a/cmd/podman/shared/pod.go +++ b/cmd/podman/shared/pod.go @@ -70,6 +70,8 @@ func GetNamespaceOptions(ns []string) ([]libpod.PodCreateOption, error) { var erroredOptions []libpod.PodCreateOption for _, toShare := range ns { switch toShare { + case "cgroup": + options = append(options, libpod.WithPodCgroups()) case "net": options = append(options, libpod.WithPodNet()) case "mnt": -- cgit v1.2.3-54-g00ecf