Skip to content

Commit

Permalink
Merge pull request #1443 from mrunalp/fix_exec_tty
Browse files Browse the repository at this point in the history
container_exec: Fix terminal setting for exec
  • Loading branch information
runcom committed Mar 11, 2018
2 parents 3879f2b + f50f4dc commit dc78b18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,9 @@ func PrepareProcessExec(c *Container, cmd []string, tty bool) (*os.File, error)

pspec := c.Spec().Process
pspec.Args = cmd
// We need to default this to false else it will inherit terminal as true
// from the container.
pspec.Terminal = false
if tty {
pspec.Terminal = true
}
Expand Down

0 comments on commit dc78b18

Please sign in to comment.