summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-24 17:12:33 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-24 21:50:49 +0000
commit819c80712578cce1d5fd1915a351bc739c7fcb72 (patch)
treec988a6f0ec51c4b5c5f885dbc7f9a321de8d75f6 /cmd
parent41c7e43b4dbba117d41d82cd8d5c0f004daba21e (diff)
downloadpodman-819c80712578cce1d5fd1915a351bc739c7fcb72.tar.gz
podman-819c80712578cce1d5fd1915a351bc739c7fcb72.tar.bz2
podman-819c80712578cce1d5fd1915a351bc739c7fcb72.zip
podman: allow to specify the userns to join
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1145 Approved by: rhatdan
Diffstat (limited to 'cmd')
-rw-r--r--cmd/podman/create.go2
1 files changed, 1 insertions, 1 deletions
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"))
}