Skip to content

Commit

Permalink
when executing single non-interactive command the docker exec should …
Browse files Browse the repository at this point in the history
…be done without tty.
  • Loading branch information
jeroenpeeters committed Feb 25, 2016
1 parent e1cca89 commit ace5083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/session-handler-factory.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = (container, shell) ->
log.info {container: container, command: info.command}, 'Exec'
channel = accept()
_container = docker.getContainer container
_container.exec {Cmd: [shell, '-c', info.command], AttachStdin: true, AttachStdout: true, AttachStderr: true, Tty: true}, (err, exec) ->
_container.exec {Cmd: [shell, '-c', info.command], AttachStdin: true, AttachStdout: true, AttachStderr: true, Tty: false}, (err, exec) ->
exec.start {stdin: true, Tty: true}, (err, _stream) ->
stream = _stream
stream.on 'data', (data) ->
Expand Down

0 comments on commit ace5083

Please sign in to comment.