mirror of
https://github.com/docker/docs.git
synced 2026-03-31 08:18:55 +07:00
Revert regression introduced in 81eac415ad, which caused 'docker run -i' to never close stdin
This commit is contained in:
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user