Skip to content

Commit 769b739

Browse files
committed
don't create from run command during dependencies creation process
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
1 parent 149b882 commit 769b739

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

pkg/compose/run.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ func (s *composeService) startDependencies(ctx context.Context, project *types.P
190190
project.Services = dependencies
191191
project.DisabledServices[options.Service] = requestedService
192192
}
193+
project.DisabledServices[options.Service] = requestedService
194+
delete(project.Services, options.Service)
193195

194-
err := s.Create(ctx, project, api.CreateOptions{
196+
err = s.Create(ctx, project, api.CreateOptions{
195197
Build: options.Build,
196198
IgnoreOrphans: options.IgnoreOrphans,
197199
RemoveOrphans: options.RemoveOrphans,

0 commit comments

Comments
 (0)