Explorar o código

Don't select stdin when interactive=False

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

Signed-off-by: Ben Firshman <[email protected]>
Ben Firshman %!s(int64=11) %!d(string=hai) anos
pai
achega
8773f51583
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fig/cli/main.py

+ 1 - 1
fig/cli/main.py

@@ -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)