mirror of
https://github.com/containers/podman.git
synced 2025-10-17 03:04:21 +08:00
--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:
@ -96,8 +96,6 @@ func runCmd(c *cli.Context) error {
|
|||||||
inputStream = nil
|
inputStream = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
inputStream = nil
|
|
||||||
|
|
||||||
attachTo := c.StringSlice("attach")
|
attachTo := c.StringSlice("attach")
|
||||||
for _, stream := range attachTo {
|
for _, stream := range attachTo {
|
||||||
switch strings.ToLower(stream) {
|
switch strings.ToLower(stream) {
|
||||||
|
Reference in New Issue
Block a user