mirror of
https://github.com/docker/docs.git
synced 2026-10-31 10:34:26 +03:00
Regardless of dependencies, fig up only attaches to what you specify
Without this, if you go:
$ fig up -d db
$ fig up web
you'll get output for both db and web, and Ctrl-C will kill them both.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
@@ -322,12 +322,14 @@ class TopLevelCommand(Command):
|
||||
recreate = not options['--no-recreate']
|
||||
service_names = options['SERVICE']
|
||||
|
||||
to_attach = self.project.up(
|
||||
self.project.up(
|
||||
service_names=service_names,
|
||||
start_links=start_links,
|
||||
recreate=recreate
|
||||
)
|
||||
|
||||
to_attach = [c for s in self.project.get_services(service_names) for c in s.containers()]
|
||||
|
||||
if not detached:
|
||||
print("Attaching to", list_containers(to_attach))
|
||||
log_printer = LogPrinter(to_attach, attach_params={"logs": True})
|
||||
|
||||
Reference in New Issue
Block a user