Browse Source

Revert regression introduced in 81eac415ad03d93596a0d8da92bdccd9ecd4ee63, which caused 'docker run -i' to never close stdin

Solomon Hykes 12 years ago
parent
commit
a6779bcae2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      commands.go

+ 1 - 0
commands.go

@@ -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
 			})
 		}