Merge pull request #13554 from Microsoft/10662-winexec

Windows: The real Windows exec driver is here.
Upstream-commit: b7e8169274ba4b897601e1025b91ebd361902213
Component: engine
This commit is contained in:
Phil Estes
2015-07-10 17:13:10 -04:00
51 changed files with 3482 additions and 85 deletions

View File

@ -5,6 +5,7 @@ import (
"io"
"net/url"
"os"
"runtime"
"github.com/Sirupsen/logrus"
"github.com/docker/docker/opts"
@ -103,6 +104,13 @@ func (cli *DockerCli) CmdRun(args ...string) error {
sigProxy = false
}
// Telling the Windows daemon the initial size of the tty during start makes
// a far better user experience rather than relying on subsequent resizes
// to cause things to catch up.
if runtime.GOOS == "windows" {
hostConfig.ConsoleSize[0], hostConfig.ConsoleSize[1] = cli.getTtySize()
}
createResponse, err := cli.createContainer(config, hostConfig, hostConfig.ContainerIDFile, *flName)
if err != nil {
return err