supabase / cli

Supabase CLI. Manage postgres migrations, run Supabase locally, deploy edge functions. Postgres backups. Generating types from your database schema.
https://supabase.com/docs/reference/cli/about
MIT License
1.08k stars 211 forks source link

Invalid default Docker project name which is based on the current Windows user's name #1670

Open Labhatorian opened 1 year ago

Labhatorian commented 1 year ago

Describe the bug When running Supabase for the first time, it creates a projectname that is invalid and will not allow any actions in Docker Desktop. I assume it is because I have an uppercase letter in my Windows name as the default config.toml uses that.

Supabase containers still run normally and can be manually shutdown. Trying to shut them all down at once with the project does not work.

To Reproduce Steps to reproduce the behavior:

  1. Run supabase init
  2. Run supabase start
  3. In Docker Desktop, press Stop on the project that has been created.
  4. It should give an error along the lines of invalid projectname.

Expected behavior It should attempt to shutdown all containers

Desktop:

Additional context I was following the guide on https://supabase.com/docs/guides/cli/getting-started?platform=windows

The default config.toml created with supabase init should not have an invalid name based on current Windows user's name. It should probably be something like project_id = "supabase"

Editing the project_id to supabase before running supabase start will fix the issue. I jumped the gun as it instead will be stuck in a shutting down state. I'm not that well-versed in Docker yet

sweatybridge commented 5 months ago

possibly related https://github.com/supabase/cli/issues/2288