isDesktopIntegrationActive returns true when Docker Desktop is the active engine.
(ctx context.Context)
| 24 | |
| 25 | // isDesktopIntegrationActive returns true when Docker Desktop is the active engine. |
| 26 | func (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. |