mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Revert regression introduced in 81eac415ad
, which caused 'docker run -i' to never close stdin
This commit is contained in:
parent
8293a0d533
commit
a6779bcae2
1 changed files with 1 additions and 0 deletions
|
@ -927,6 +927,7 @@ func (srv *Server) CmdRun(stdin io.ReadCloser, stdout io.Writer, args ...string)
|
|||
if !config.Detach {
|
||||
Go(func() error {
|
||||
_, err := io.Copy(cmdStdin, stdin)
|
||||
cmdStdin.Close()
|
||||
return err
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue