summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2018-07-24 17:53:10 +0200
committerAtomic Bot <atomic-devel@projectatomic.io>2018-07-24 21:50:49 +0000
commit977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf (patch)
tree95120f933b921ec2c0773700e3502b1955a7a882 /cmd
parent8223fbaac6d6031359e2370ff11ec4c8f91b37b8 (diff)
downloadpodman-977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf.tar.gz
podman-977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf.tar.bz2
podman-977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf.zip
podman: allow to specify the UTS namespace 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 d5390194c..cf0020ffb 100644
--- a/cmd/podman/create.go
+++ b/cmd/podman/create.go
@@ -389,7 +389,7 @@ func parseCreateOpts(ctx context.Context, c *cli.Context, runtime *libpod.Runtim
}
utsMode := container.UTSMode(c.String("uts"))
- if !utsMode.Valid() {
+ if !cc.IsNS(string(utsMode)) && !utsMode.Valid() {
return nil, errors.Errorf("--uts %q is not valid", c.String("uts"))
}
ipcMode := container.IpcMode(c.String("ipc"))