don't create from run command during dependencies creation process

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2025-06-23 22:03:35 +02:00
parent 149b882ebf
commit 769b7391ba

View File

@ -190,8 +190,10 @@ func (s *composeService) startDependencies(ctx context.Context, project *types.P
project.Services = dependencies
project.DisabledServices[options.Service] = requestedService
}
project.DisabledServices[options.Service] = requestedService
delete(project.Services, options.Service)
err := s.Create(ctx, project, api.CreateOptions{
err = s.Create(ctx, project, api.CreateOptions{
Build: options.Build,
IgnoreOrphans: options.IgnoreOrphans,
RemoveOrphans: options.RemoveOrphans,