Fix #1961 - docker-compose up should attach to all containers with no service names are specified, and add tests.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
3bee62e4c5
commit
48466d7d82
3 changed files with 37 additions and 6 deletions
|
|
@ -583,8 +583,11 @@ class TopLevelCommand(Command):
|
|||
|
||||
|
||||
def build_log_printer(containers, service_names, monochrome):
|
||||
if service_names:
|
||||
containers = [c for c in containers if c.service in service_names]
|
||||
|
||||
return LogPrinter(
|
||||
[c for c in containers if c.service in service_names],
|
||||
containers,
|
||||
attach_params={"logs": True},
|
||||
monochrome=monochrome)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue