summaryrefslogtreecommitdiff
path: root/cmd/podman/create.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-24 17:46:47 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-24 21:50:49 +0000
commit8223fbaac6d6031359e2370ff11ec4c8f91b37b8 (patch)
treed4dd15ebb3d82e43cd8c68275fd2f02af71202b9 /cmd/podman/create.go
parent819c80712578cce1d5fd1915a351bc739c7fcb72 (diff)
downloadpodman-8223fbaac6d6031359e2370ff11ec4c8f91b37b8.tar.gz
podman-8223fbaac6d6031359e2370ff11ec4c8f91b37b8.tar.bz2
podman-8223fbaac6d6031359e2370ff11ec4c8f91b37b8.zip
podman: allow to specify the PID namespace to join
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> Closes: #1145 Approved by: rhatdan
Diffstat (limited to 'cmd/podman/create.go')
-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 071c04ca5..d5390194c 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -369,7 +369,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim
tty := c.Bool("tty")
pidMode := container.PidMode(c.String("pid"))
- if !pidMode.Valid() {
+ if !cc.IsNS(string(pidMode)) && !pidMode.Valid() {
return nil, errors.Errorf("--pid %q is not valid", c.String("pid"))
}