MCPcopy
hub / github.com/docker/compose / resolveRunServiceReferences

Method resolveRunServiceReferences

pkg/compose/run.go:271–277  ·  view source on GitHub ↗
(ctx context.Context, projectName string, service *types.ServiceConfig)

Source from the content-addressed store, hash-verified

269}
270
271func (s *composeService) resolveRunServiceReferences(ctx context.Context, projectName string, service *types.ServiceConfig) error {
272 containersByService, err := s.getContainersByService(ctx, projectName)
273 if err != nil {
274 return err
275 }
276 return resolveServiceReferences(service, containersByService)
277}
278
279func (s *composeService) startDependencies(ctx context.Context, project *types.Project, options api.RunOptions) error {
280 project = project.WithServicesDisabled(options.Service)

Callers 1

prepareRunMethod · 0.95

Calls 2

resolveServiceReferencesFunction · 0.85

Tested by

no test coverage detected