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 {
|
if !config.Detach {
|
||||||
Go(func() error {
|
Go(func() error {
|
||||||
_, err := io.Copy(cmdStdin, stdin)
|
_, err := io.Copy(cmdStdin, stdin)
|
||||||
|
cmdStdin.Close()
|
||||||
return err
|
return err
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue