bug: incorrect docker.sock path for supabase_vector container with colima
Describe the bug
When running supabase start with colima, the supabase_vector container fails to start.
The cause is that when supabase start launches the supabase_vector container, the docker.sock path it specifies points to the macOS docker.sock.
It should instead point to /var/run/docker.sock inside the colima VM.
To Reproduce
- Install colima on macOS:
brew install colima - Start colima:
colima start - Run
supabase start - An error occurs
failed to start docker container "supabase_vector_quickstart-react": Error response from daemon: error while creating mount source path '/Users/hk/.colima/default/docker.sock': mkdir /Users/hk/.colima/default/docker.sock: operation not supported
Expected behavior supabase start completes successfully.
System information
- Ticket ID: 1c187cd3ac784751af0b3a0cd35e486e
- Version of OS: macOS 26.4.1
- Version of CLI: 2.89.1
- Version of Docker: 29.4.
- Versions of services:
% npx supabase services
SERVICE IMAGE | LOCAL | LINKED
------------------------|------------------------|--------
supabase/postgres | 17.6.1.106 | -
supabase/gotrue | v2.188.1 | -
postgrest/postgrest | v14.8 | -
supabase/realtime | v2.82.0 | -
supabase/storage-api | v1.48.28 | -
supabase/edge-runtime | v1.73.3 | -
supabase/studio | 2026.04.08-sha-205cbe7 | -
supabase/postgres-meta | v0.96.4 | -
supabase/logflare | 1.37.1 | -
supabase/supavisor | 2.7.4 | -
%
I was running into the same issue. A workaround for this is to disable analytics, if you don't need it, in supabase/config.toml.
[analytics]
enabled = false
Hi! Thanks for opening this issue.
We're closing this because it has not had any activity for 45 days, and we try to keep the Supabase CLI issue tracker focused on reports that are still current.
If this still reproduces on the latest Supabase CLI, please comment with /reopen on its own line and include your CLI version, updated reproduction steps, and any recent error output. We appreciate the signal and are happy to take another look.
/reopen
Problem still persists with supabase/cli version 2.109.1 !
To Reproduce
- Install colima on macOS:
brew install colima - Start colima:
colima start - Run
supabase start - An error occurs:
Starting containers...
Stopping containers...
failed to start docker container "supabase_vector_[projectname]": Error response from daemon: error while creating mount source path '/Users/USERNAME/.colima/default/docker.sock': mkdir /Users/USERNAME/.colima/default/docker.sock: operation notsupported
Note
Without --mount-type argument, colima start defaults to virtiofs. In a Colima-repo issue https://github.com/abiosoft/colima/issues/997#issuecomment-2266030827 some suggest that colima start --mount-type sshfs can resolve the mounting issue. Haven't tried yet myself.
Partial progress: with colima start --mount-type sshfs, the vector container actually starts. No immediate mkdir ... docker.sock: operation not supported.
New failure: vector restart-loops because it cannot reach the Docker API:
ERROR vector::sources::docker_logs: Listing currently running containers failed.
error=... Connection refused (os error 111)
Vector starts → fails to list containers → retries 7x → exits → Supabase eventually reports:
supabase_vector_[projectname] container is not ready: unhealthy
Environment:
- macOS Tahoe 26.5.1
- colima 0.10.3
- Supabase CLI 2.109.1
- supabase/config.toml with
[analytics] enabled = true
To reproduce:
- Reset colima
colima stop+colima delete - Restart w/ new mount:
colima start --mount-type sshfs supabase start- Error:
Starting containers...
Waiting for health checks...
supabase_vector_[projectname] container logs:
2026-07-07T18:23:10.070853Z INFO vector::app: Log level is enabled. level="info"
2026-07-07T18:23:10.075829Z INFO vector::app: Loading configs. paths=["/etc/vector/vector.yaml"]
2026-07-07T18:23:10.116583Z WARN vector::config::loading: Transform "router._unmatched" has no consumers
2026-07-07T18:23:10.120504Z INFO source{component_kind="source" component_id=docker_host component_type=docker_logs}: vector::sources::docker_logs: Capturing logs from now on. now=2026-07-07T18:23:10.119804745+00:00
2026-07-07T18:23:10.122942Z INFO source{component_kind="source" component_id=docker_host component_type=docker_logs}: vector::sources::docker_logs: Listening to docker log events.
2026-07-07T18:23:10.226457Z INFO vector::topology::running: Running healthchecks.
2026-07-07T18:23:10.226609Z INFO vector::topology::builder: Healthcheck passed.
2026-07-07T18:23:10.226695Z INFO vector::topology::builder: Internal log [Healthcheck passed.] is being suppressed to avoid flooding.
2026-07-07T18:23:10.226758Z INFO vector: Vector has started. debug="false" version="0.53.0" arch="aarch64" revision="2b51b40 2026-01-27 21:46:39.386326724"
2026-07-07T18:23:10.231594Z ERROR source{component_kind="source" component_id=docker_host component_type=docker_logs}: vector::sources::docker_logs: Listing currently running containers failed. error=HyperLegacyError { err: hyper_util::client::legacy::Error(Connect, Os { code: 111, kind: ConnectionRefused, message: "Connection refused" }) }
2026-07-07T18:23:10.234372Z INFO vector::internal_events::api: API server running. address=0.0.0.0:9001 playground=http://0.0.0.0:9001/playground graphql=http://0.0.0.0:9001/graphql
2026-07-07T18:23:10.234450Z INFO vector_common::shutdown: All sources have finished.
2026-07-07T18:23:10.234454Z INFO vector_common::shutdown: Internal log [All sources have finished.] is being suppressed to avoid flooding.
2026-07-07T18:23:10.234495Z INFO vector::app: All sources have finished.
2026-07-07T18:23:10.234500Z INFO vector: Vector has stopped.
2026-07-07T18:23:10.237764Z INFO vector::topology::running: Shutting down... Waiting on running components. remaining_components="functions_logs, logflare_db, logflare_rest, logflare_realtime, logflare_kong, db_logs, kong_err, kong_logs, logflare_storage, logflare_functions, logflare_auth" time_remaining="59 seconds left"
2026-07-07T18:23:10.434144Z INFO vector::app: Log level is enabled. level="info"
[... this repeats 7 retries ...]
Stopping containers...
supabase_vector_[projectname] container is not ready: unhealthy
Not yet tried:
- symlink +
DOCKER_HOST=unix:///var/run/docker.sockworkaround from @valeriangalliat's CodeJam writeup (2026-06-01). - Supabase CLI fix proposed in closed PR https://github.com/supabase/cli/pull/5074
Confirmed fix for supabase/cli v2.109.1 + Colima on macOS.
I've re-built apps/cli-go from develop with the Colima socket handling from @hk220's #5074 patch applied. Then set SUPABASE_CLI_BINARY_OVERRIDE to the rebuilt binary path, and re-ran supabase start.
Result:
supabase start completes; supabase_vector_[projectname] is healthy; Studio Logs Explorer shows live logs with [analytics] enabled = true. Works with both default virtiofs and --mount-type sshfs.
To reproduce:
- Clone and check out
supabase/clidevelop - Apply #5074 patch:
# apps/cli-go/internal/start/start.go
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") ||
- strings.HasSuffix(parsed.Host, "/.docker/desktop/docker.sock") {
- // Docker will not mount rootless socket directly;
+ strings.HasSuffix(parsed.Host, "/.docker/desktop/docker.sock") ||
+ strings.HasSuffix(parsed.Host, "/.colima/default/docker.sock") ||
+ strings.HasSuffix(parsed.Host, "/.colima/docker.sock") {
+ // Docker Desktop and Colima 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 {
cd apps/cli-go && go build -o ~/bin/supabase-colima .colima start(orcolima start --mount-type sshfs)- In project repo:
export SUPABASE_CLI_BINARY_OVERRIDE="$HOME/bin/supabase-colima" && supabase start - Success:
Starting containers...
Waiting for health checks...
Started supabase local development setup.
Fix still needed in CLI release. Will ask @hk220 to re-open his PR.
thanks! @rlirli @hk220 💚 pushed up a fix for this, should likely land tmrw
out in: https://github.com/supabase/cli/releases/tag/v2.110.0-beta.10