From 546a524be55fa6bf6a21351effcefcc7ce811973 Mon Sep 17 00:00:00 2001 From: unlair Date: Mon, 2 Feb 2026 16:40:48 -0500 Subject: [PATCH] fix: use correct docker.sock binding when starting vector img (fixes #3127, #3512, #3593) This fixes Docker Desktop on Linux failing to start the vector container. The container tries to bind to the Docker Desktop socket directly, which is unsupported. The host binding path should always be /var/run/docker.sock, which has special handling under the hood (see https://github.com/docker/for-mac/issues/6545#issuecomment-1295599122). --- internal/start/start.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/start/start.go b/internal/start/start.go index 5a5cec56c..36862c95b 100644 --- a/internal/start/start.go +++ b/internal/start/start.go @@ -377,8 +377,10 @@ EOF case "unix": if dindHost, err = client.ParseHostURL(client.DefaultDockerHost); err != nil { return errors.Errorf("failed to parse default host: %w", err) - } else if strings.HasSuffix(parsed.Host, "/.docker/run/docker.sock") { - fmt.Fprintln(os.Stderr, utils.Yellow("WARNING:"), "analytics requires mounting default docker socket:", dindHost.Host) + } else if strings.HasSuffix(parsed.Host, "/.docker/run/docker.sock") || + strings.HasSuffix(parsed.Host, "/.docker/desktop/docker.sock") { + // Docker will not mount rootless socket directly; + // instead, specify root socket to have it handled under the hood binds = append(binds, fmt.Sprintf("%[1]s:%[1]s:ro", dindHost.Host)) } else { // Podman and OrbStack can mount root-less socket without issue