From a6779bcae2df4805b8024c56f81ee3afac46ff93 Mon Sep 17 00:00:00 2001 From: Solomon Hykes Date: Sun, 31 Mar 2013 02:44:56 -0700 Subject: [PATCH] Revert regression introduced in 81eac415ad03d93596a0d8da92bdccd9ecd4ee63, which caused 'docker run -i' to never close stdin --- commands.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands.go b/commands.go index 4cad9f68c1..4ccdba67d6 100644 --- a/commands.go +++ b/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 }) }