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

Method isDesktopIntegrationActive

pkg/compose/desktop.go:26–29  ·  pkg/compose/desktop.go::composeService.isDesktopIntegrationActive

isDesktopIntegrationActive returns true when Docker Desktop is the active engine.

(ctx context.Context)

Source from the content-addressed store, hash-verified

24
25// isDesktopIntegrationActive returns true when Docker Desktop is the active engine.
26func (s *composeService) isDesktopIntegrationActive(ctx context.Context) (bool, error) {
27 endpoint, err := desktop.Endpoint(ctx, s.apiClient())
28 return endpoint != "", err
29}
30
31// isDesktopFeatureActive checks whether a Docker Desktop feature flag is
32// enabled. Returns false silently when Desktop is not running or unreachable.

Callers 1

UpMethod · 0.95

Calls 2

apiClientMethod · 0.95
EndpointFunction · 0.92

Tested by

no test coverage detected