Skip to content

Commit

Permalink
Revert "fix: handle container exec attach using TTY"
Browse files Browse the repository at this point in the history
This reverts commit 5733288.
  • Loading branch information
mdelapenya committed Nov 16, 2022
1 parent 26b3f7b commit 7fff2b4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docker.go
Expand Up @@ -440,15 +440,12 @@ func (c *DockerContainer) Exec(ctx context.Context, cmd []string) (int, io.Reade
Detach: false,
AttachStdout: true,
AttachStderr: true,
Tty: false,
})
if err != nil {
return 0, nil, err
}

hijack, err := cli.ContainerExecAttach(ctx, response.ID, types.ExecStartCheck{
Tty: true,
})
hijack, err := cli.ContainerExecAttach(ctx, response.ID, types.ExecStartCheck{})
if err != nil {
return 0, nil, err
}
Expand Down

0 comments on commit 7fff2b4

Please sign in to comment.