Skip to content

bug: incorrect docker.sock path for supabase_vector container with colima #5073

Closed

Description

@hk220

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

  1. Install colima on macOS: brew install colima
  2. Start colima: colima start
  3. Run supabase start
  4. 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                  | -

%

Activity

  1. ReeceHughes commented on Apr 21, 2026

    @ReeceHughes

    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
  2. github-actions commented on Jun 17, 2026

    @github-actions
    Contributor

    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.

  3. added
    stale-closed
    on Jun 17, 2026
  4. rlirli commented on Jul 7, 2026

    @rlirli

    /reopen

    Problem still persists with supabase/cli version 2.109.1 !

    To Reproduce

    1. Install colima on macOS: brew install colima
    2. Start colima: colima start
    3. Run supabase start
    4. 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 abiosoft/colima#997 (comment) some suggest that colima start --mount-type sshfs can resolve the mounting issue. Haven't tried yet myself.

  5. removed
    stale-closed
    on Jul 7, 2026
  6. rlirli commented on Jul 7, 2026

    @rlirli

    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:

    1. Reset colima colima stop + colima delete
    2. Restart w/ new mount: colima start --mount-type sshfs
    3. supabase start
    4. 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:

  7. rlirli commented on Jul 7, 2026

    @rlirli

    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:

    1. Clone and check out supabase/cli develop
    2. Apply fix(docker): force client.DefaultDockerHost for supabase start when using colima #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 {
    1. cd apps/cli-go && go build -o ~/bin/supabase-colima .
    2. colima start (or colima start --mount-type sshfs)
    3. In project repo: export SUPABASE_CLI_BINARY_OVERRIDE="$HOME/bin/supabase-colima" && supabase start
    4. 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.

  8. self-assigned this
    on Jul 7, 2026
  9. added a commit that references this issue on Jul 7, 2026
    558f8de
  10. 7ttp commented on Jul 7, 2026

    @7ttp
    Member

    thanks! @rlirli @hk220 💚
    pushed up a fix for this, should likely land tmrw

  11. 7ttp commented on Jul 8, 2026

    @7ttp
    Member
  12. added a commit that references this issue on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions