mirror of
https://github.com/docker/compose.git
synced 2025-09-21 16:57:51 +02:00
only monitor attached services on up command
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
parent
fbc62d111e
commit
c2cb0aef6b
@ -168,7 +168,8 @@ func (s *composeService) Up(ctx context.Context, project *types.Project, options
|
||||
if len(options.Start.Services) > 0 {
|
||||
monitor.withServices(options.Start.Services)
|
||||
} else {
|
||||
monitor.withServices(project.ServiceNames())
|
||||
// Start.AttachTo have been already curated with only the services to monitor
|
||||
monitor.withServices(options.Start.AttachTo)
|
||||
}
|
||||
monitor.withListener(printer.HandleEvent)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user