Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
exec: always make explicit the tty value
otherwise runc will take by default the value used for creating the
container.  Setting it explicit overrides its default value and we
won't end up trying to use a terminal when not available.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1625876

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Nov 20, 2018
1 parent ea928f2 commit fd01402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libpod/oci.go
Expand Up @@ -741,6 +741,8 @@ func (r *OCIRuntime) execContainer(c *Container, cmd, capAdd, env []string, tty

if tty {
args = append(args, "--tty")
} else {
args = append(args, "--tty=false")
}

if user != "" {
Expand Down

0 comments on commit fd01402

Please sign in to comment.