Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supabase cannot start locally when using docker with colima #153

Closed
riccardoNovaglia opened this issue Jan 27, 2022 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@riccardoNovaglia
Copy link

Bug report

Describe the bug

supabase cli cannot connect to the docker daemon started by colima

To Reproduce

Start docker via colima, run supabase start:

$ supabase start
Error: Failed to connect to Docker daemon. Is Docker running?

Expected behavior

Supabase should start locally

Screenshots

Sample output from running the commands on my machine:

$ docker ps
Cannot connect to the Docker daemon at unix:///Users/xxx/.colima/docker.sock. Is the docker daemon running?
$ colima start
INFO[0000] using docker runtime                         
INFO[0000] starting colima                              
INFO[0000] starting ...                                  context=vm
INFO[0031] provisioning ...                              context=docker
INFO[0031] starting ...                                  context=docker
INFO[0037] waiting for startup to complete ...           context=docker
INFO[0037] done                                         
$ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
$ docker run --rm grycap/cowsay 
 ________________________________________
/ He who hoots with owls by night cannot \
\ soar with eagles by day.               /
 ----------------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
$ supabase start
Error: Failed to connect to Docker daemon. Is Docker running?

System information

  • OS: MacOS 12.1
  • Version of supabase-js: 0.16.1
  • Version of Node.js: v17.3.1
  • Version of Docker: 20.10.12, build e91ed5707e
  • Version of Colima:
colima version 0.3.2
git commit: 272db4732b90390232ed9bdba955877f46a50552

runtime: docker
arch: x86_64
client: v20.10.12
server: v20.10.11

Additional context

supabase, docker and colima were installed via brew.

@riccardoNovaglia riccardoNovaglia added the bug Something isn't working label Jan 27, 2022
@soedirgo
Copy link
Member

soedirgo commented Feb 9, 2022

Seems like the issue is abiosoft/colima#144. The solution at the bottom works for me.

@riccardoNovaglia
Copy link
Author

It worked for me too, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants