summaryrefslogtreecommitdiff
path: root/cmd/podman/run.go
diff options
context:
space:
mode:
authorŠimon Lukašík <slukasik@redhat.com>2018-11-03 17:20:54 +0100
committerŠimon Lukašík <slukasik@redhat.com>2018-11-03 19:18:37 +0100
commit59f93edacc483039c6a3ecd8b35817dcd9515d17 (patch)
tree76cc7c54e35f6fe366285c8cc83079ab488c3483 /cmd/podman/run.go
parent309f4eb1efea58c763365cadc324eee258ac4cbe (diff)
downloadpodman-59f93edacc483039c6a3ecd8b35817dcd9515d17.tar.gz
podman-59f93edacc483039c6a3ecd8b35817dcd9515d17.tar.bz2
podman-59f93edacc483039c6a3ecd8b35817dcd9515d17.zip
--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>
Diffstat (limited to 'cmd/podman/run.go')
-rw-r--r--cmd/podman/run.go2
1 files changed, 0 insertions, 2 deletions
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) {