diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-07-24 18:23:10 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-24 21:50:49 +0000 |
commit | e43270fc5e594fdb77f9a22f0042105824485e62 (patch) | |
tree | aa8c830d22e0ee19d0c25eea7ffec264f9703dc5 /cmd/podman/create.go | |
parent | 977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf (diff) | |
download | podman-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.go | 2 |
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 := "" |