Merge pull request #763 from bfirsh/pass-through-detach-to-create-container

Don't attach stdin and stdout when in detach mode
This commit is contained in:
Aanand Prasad 2014-12-30 16:05:53 +00:00
commit 70c3676084
5 changed files with 34 additions and 6 deletions

View file

@ -296,6 +296,7 @@ class TopLevelCommand(Command):
start_links=True,
recreate=False,
insecure_registry=insecure_registry,
detach=options['-d']
)
tty = True
@ -311,6 +312,7 @@ class TopLevelCommand(Command):
'command': command,
'tty': tty,
'stdin_open': not options['-d'],
'detach': options['-d'],
}
if options['-e']:
@ -438,6 +440,7 @@ class TopLevelCommand(Command):
start_links=start_links,
recreate=recreate,
insecure_registry=insecure_registry,
detach=options['-d']
)
to_attach = [c for s in project.get_services(service_names) for c in s.containers()]