mirror of
https://github.com/status-im/consul.git
synced 2025-02-08 20:05:09 +00:00
docker: do not alloc a tty since this is not interactive
This commit is contained in:
parent
a1b47d99c1
commit
94726ef105
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user