From fd014029300328c27ddb535d4868858ec47530f8 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 20 Nov 2018 10:00:20 +0100 Subject: 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 --- libpod/oci.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libpod/oci.go') diff --git a/libpod/oci.go b/libpod/oci.go index 71da830b5..190a4dc7f 100644 --- a/libpod/oci.go +++ b/libpod/oci.go @@ -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 != "" { -- cgit v1.2.3-54-g00ecf