From 59f93edacc483039c6a3ecd8b35817dcd9515d17 Mon Sep 17 00:00:00 2001 From: Šimon Lukašík Date: Sat, 3 Nov 2018 17:20:54 +0100 Subject: --interactive shall keep STDIN attached even when not explicitly called out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Addressing: podman run -it -a STDERR --rm alpine /bin/ash hanging. As we droped stdin as soon as -a was used. Notice this is contrary to what D-tool does and contrary to what podman help implies: podman run --help | grep interact --interactive, -i Keep STDIN open even if not attached Signed-off-by: Šimon Lukašík --- cmd/podman/run.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmd/podman/run.go') diff --git a/cmd/podman/run.go b/cmd/podman/run.go index e4b25eaf4..af6ced45d 100644 --- a/cmd/podman/run.go +++ b/cmd/podman/run.go @@ -96,8 +96,6 @@ func runCmd(c *cli.Context) error { inputStream = nil } - inputStream = nil - attachTo := c.StringSlice("attach") for _, stream := range attachTo { switch strings.ToLower(stream) { -- cgit v1.2.3-54-g00ecf