From 35a10c9ba541807b96b01cc66f79c72606d9ed99 Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 2 Apr 2018 09:20:13 -0500 Subject: Only allocate tty when -t In our ezrly development, we always allocated a tty when not -d. Now we should only allocated when the user asks for it. Resolves: #573 Signed-off-by: baude Closes: #574 Approved by: rhatdan --- cmd/podman/create.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'cmd/podman') diff --git a/cmd/podman/create.go b/cmd/podman/create.go index fe6d30c9e..a25f31717 100644 --- a/cmd/podman/create.go +++ b/cmd/podman/create.go @@ -447,13 +447,7 @@ func parseCreateOpts(c *cli.Context, runtime *libpod.Runtime, imageName string, return nil, err } - // Because we cannot do a non-terminal attach, we need to set tty to true - // if detach is not false - // TODO Allow non-terminal attach tty := c.Bool("tty") - if !c.Bool("detach") && !tty { - tty = true - } pidMode := container.PidMode(c.String("pid")) if !pidMode.Valid() { -- cgit v1.2.3-54-g00ecf