Commit eabd32f3 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/docker: comment the sleep on remote exec

parent c1f0fe3f
......@@ -41,7 +41,14 @@ func (c *Communicator) Start(remote *packer.RemoteCmd) error {
go func() {
defer stdin_w.Close()
// This sleep needs to be here because of the issue linked to below.
// Basically, without it, Docker will hang on reading stdin forever,
// and won't see what we write, for some reason.
//
// https://github.com/dotcloud/docker/issues/2628
time.Sleep(2 * time.Second)
stdin_w.Write([]byte(remote.Command + "\n"))
}()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment