diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-07-24 17:53:10 +0200 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-07-24 21:50:49 +0000 |
commit | 977c8a9cd6db70c3ba2f868ea5b6c5e9615bf7bf (patch) | |
tree | 95120f933b921ec2c0773700e3502b1955a7a882 /cmd/podman | |
parent | 8223fbaac6d6031359e2370ff11ec4c8f91b37b8 (diff) | |
download | podman-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/podman')
-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 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")) |