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

Function getDependentServiceFromMode

pkg/compose/create.go:852–860  ·  view source on GitHub ↗
(mode string)

Source from the content-addressed store, hash-verified

850}
851
852func getDependentServiceFromMode(mode string) string {
853 if strings.HasPrefix(
854 mode,
855 types.NetworkModeServicePrefix,
856 ) {
857 return mode[len(types.NetworkModeServicePrefix):]
858 }
859 return ""
860}
861
862func (s *composeService) buildContainerVolumes(
863 ctx context.Context,

Callers 2

resolveSharedNamespacesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected