docker: do not alloc a tty since this is not interactive

This commit is contained in:
Frank Schroeder 2017-10-26 11:56:54 +02:00
parent b1a5a6b64d
commit 0a9d2a367e
No known key found for this signature in database
GPG key ID: 4D65C6EAEC87DECD

View file

@ -151,7 +151,7 @@ func (c *DockerClient) CreateExec(containerID string, cmd []string) (string, err
} }
func (c *DockerClient) StartExec(containerID, execID string) (*circbuf.Buffer, error) { func (c *DockerClient) StartExec(containerID, execID string) (*circbuf.Buffer, error) {
data := struct{ Detach, Tty bool }{Detach: false, Tty: true} data := struct{ Detach, Tty bool }{Detach: false, Tty: false}
uri := fmt.Sprintf("/exec/%s/start", execID) uri := fmt.Sprintf("/exec/%s/start", execID)
b, code, err := c.call("POST", uri, data) b, code, err := c.call("POST", uri, data)
switch { switch {