Merge pull request #1390 from mrunalp/exec_sync_tty_master

execsync: Set terminal to true when we pass -t to conmon
This commit is contained in:
Antonio Murdaca 2018-03-01 10:16:22 +01:00 committed by GitHub
commit f8b6736d81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,