mirror of
https://github.com/docker/compose.git
synced 2025-07-29 16:44:20 +02:00
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)
|
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…
x
Reference in New Issue
Block a user