|
|
@ -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 {
|
|
|
|