summaryrefslogtreecommitdiff
path: root/cmd/podman/common
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2020-04-24 12:25:18 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2020-04-24 12:56:23 +0200
commita1f73d095400f13999e61578567f338a9f13a008 (patch)
tree2b5491939b0ced5d0bd5ecb27c3a90c8c06bc7b8 /cmd/podman/common
parent543d5f17405e65386bd848d9f4d06cfbce27ef29 (diff)
downloadpodman-a1f73d095400f13999e61578567f338a9f13a008.tar.gz
podman-a1f73d095400f13999e61578567f338a9f13a008.tar.bz2
podman-a1f73d095400f13999e61578567f338a9f13a008.zip
podman: fix podman --group-add
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'cmd/podman/common')
-rw-r--r--cmd/podman/common/specgen.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index fda11c0af..e14fd78b4 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -449,6 +449,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
}
s.CgroupParent = c.CGroupParent
s.CgroupsMode = c.CGroupsMode
+ s.Groups = c.GroupAdd
// TODO WTF
//cgroup := &cc.CgroupConfig{
// Cgroupns: c.String("cgroupns"),