diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-24 12:25:18 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2020-04-24 12:56:23 +0200 |
commit | a1f73d095400f13999e61578567f338a9f13a008 (patch) | |
tree | 2b5491939b0ced5d0bd5ecb27c3a90c8c06bc7b8 | |
parent | 543d5f17405e65386bd848d9f4d06cfbce27ef29 (diff) | |
download | podman-a1f73d095400f13999e61578567f338a9f13a008.tar.gz podman-a1f73d095400f13999e61578567f338a9f13a008.tar.bz2 podman-a1f73d095400f13999e61578567f338a9f13a008.zip |
podman: fix podman --group-add
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
-rw-r--r-- | cmd/podman/common/specgen.go | 1 | ||||
-rw-r--r-- | test/e2e/run_test.go | 1 |
2 files changed, 1 insertions, 1 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"), diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 735fc1d5d..6386b8a70 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -566,7 +566,6 @@ var _ = Describe("Podman run", func() { }) It("podman run with group-add", func() { - Skip(v2fail) SkipIfRootless() session := podmanTest.Podman([]string{"run", "--rm", "--group-add=audio", "--group-add=nogroup", "--group-add=777", ALPINE, "id"}) session.WaitWithDefaultTimeout() |