aboutsummaryrefslogtreecommitdiff
path: root/cmd/podman/create.go
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-24 18:23:10 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-24 21:50:49 +0000
commite43270fc5e594fdb77f9a22f0042105824485e62 (patch)
treeaa8c830d22e0ee19d0c25eea7ffec264f9703dc5 /cmd/podman/create.go
parent977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf (diff)
downloadpodman-e43270fc5e594fdb77f9a22f0042105824485e62.tar.gz
podman-e43270fc5e594fdb77f9a22f0042105824485e62.tar.bz2
podman-e43270fc5e594fdb77f9a22f0042105824485e62.zip
podman: allow to specify the IPC 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 cf0020ffb..c7982d551 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -393,7 +393,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim
return nil, errors.Errorf("--uts %q is not valid", c.String("uts"))
}
ipcMode := container.IpcMode(c.String("ipc"))
- if !ipcMode.Valid() {
+ if !cc.IsNS(string(ipcMode)) && !ipcMode.Valid() {
return nil, errors.Errorf("--ipc %q is not valid", ipcMode)
}
shmDir := ""