mirror of https://github.com/docker/compose.git
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
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue