--interactive shall keep STDIN attached even when not explicitly called out

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 <slukasik@redhat.com>
This commit is contained in:
Šimon Lukašík
2018-11-03 17:20:54 +01:00
parent 309f4eb1ef
commit 59f93edacc

View File

@ -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) {