From 819c80712578cce1d5fd1915a351bc739c7fcb72 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 24 Jul 2018 17:12:33 +0200 Subject: podman: allow to specify the userns to join Signed-off-by: Giuseppe Scrivano Closes: #1145 Approved by: rhatdan --- cmd/podman/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd') diff --git a/cmd/podman/create.go b/cmd/podman/create.go index 6fe68ebab..071c04ca5 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -374,7 +374,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim } usernsMode := container.UsernsMode(c.String("userns")) - if !usernsMode.Valid() { + if !cc.IsNS(string(usernsMode)) && !usernsMode.Valid() { return nil, errors.Errorf("--userns %q is not valid", c.String("userns")) } -- cgit v1.2.3-54-g00ecf