diff --git a/oci/oci.go b/oci/oci.go index 69269f2c..26b4ec26 100644 --- a/oci/oci.go +++ b/oci/oci.go @@ -441,7 +441,7 @@ func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp args = append(args, "-l", logPath) args = append(args, "--socket-dir-path", ContainerAttachSocketDir) - processFile, err := PrepareProcessExec(c, command, false) + processFile, err := PrepareProcessExec(c, command, c.terminal) if err != nil { return nil, ExecSyncError{ ExitCode: -1,