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:
parent
38a3ee8d63
commit
8773f51583
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ class TopLevelCommand(Command):
|
||||||
print(container.name)
|
print(container.name)
|
||||||
else:
|
else:
|
||||||
service.start_container(container, ports=None, one_off=True)
|
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()
|
exit_code = container.wait()
|
||||||
if options['--rm']:
|
if options['--rm']:
|
||||||
log.info("Removing %s..." % container.name)
|
log.info("Removing %s..." % container.name)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue