Skip to content

Mounts denied for /socket_mnt/.../docker.sock with Docker Desktop when running supabase start #3593

@Skirja

Description

@Skirja

Describe the bug
When running supabase start on Fedora with Docker Desktop, the process fails with a "Mounts denied" error specifically for the Docker Desktop socket path (/socket_mnt/home//.docker/desktop/docker.sock). This occurs even though Docker Desktop's file sharing is configured to share the parent directory (/home//.docker/desktop), and basic Docker operations (like docker run hello-world and mounting regular files from the same directory) work correctly. The issue seems to be specific to Docker Desktop denying the mount of its own socket when requested by Supabase CLI.

To Reproduce
Steps to reproduce the behavior:

  1. Initialize a new Supabase project: supabase init (accept defaults).
  2. Attempt to start the Supabase services: supabase start.
  3. Observe the process, which proceeds through database migrations and seeding.
  4. See error: failed to start docker container: Error response from daemon: Mounts denied: The path /socket_mnt/home/skirja/.docker/desktop/docker.sock is not shared from the host and is not known to Docker

Expected behavior
supabase start should successfully start all local Supabase services without any "Mounts denied" errors, allowing for local development.

System information
Rerun the failing command with --create-ticket flag.

  • Ticket ID: 8d5d10aac33249ab92b8d2aa1eb050d5
  • Version of OS: Fedora Linux 42 (Workstation Edition)
  • Version of CLI: 2.23.4
  • Version of Docker: Docker version 28.1.1, build 4eba377

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions