Don't select stdin when interactive=False

Patch from https://github.com/d11wtq/dockerpty/pull/24

Signed-off-by: Ben Firshman <ben@firshman.co.uk>
This commit is contained in:
Ben Firshman 2014-11-04 10:25:27 +00:00
parent 38a3ee8d63
commit 8773f51583
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ class TopLevelCommand(Command):
print(container.name)
else:
service.start_container(container, ports=None, one_off=True)
dockerpty.start(project.client, container.id)
dockerpty.start(project.client, container.id, interactive=not options['-T'])
exit_code = container.wait()
if options['--rm']:
log.info("Removing %s..." % container.name)