cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open Labhatorian opened this issue 2 years ago • 1 comments

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:

  • OS: Windows 11 23H2
  • Version of CLI: 1.112.0
  • Docker Desktop: v4.25.1

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

Labhatorian avatar Nov 17 '23 12:11 Labhatorian

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

sweatybridge avatar Jun 11 '24 14:06 sweatybridge