Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Supabase CLI 2.122.0 prunes local Docker network before database container creation on Windows/WSL2

未关闭
#7,339 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@jgoux 已经在做这个了。

开始于 2026年10月27日。

  • #7372 来自 @jgoux —— 未关闭

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
docker, postgresql, typescript
领域
cli, databases

调研方向

Start by locating the supabase start flow and Docker network creation, cleanup, and database container startup paths; compare them with the related issue #6136. Determine whether the project-filtered prune request comes from CLI cleanup or overlapping processes, then identify a reproducible way to preserve the network through startup. Done means the database container attaches and the local stack starts without the network being pruned.

由索引模型根据 Issue 内容生成。

描述

🐛 Bug supabase/cli
Affected area

Local development

Supabase CLI version

v2.122.0

Operating system

Windows 10 Pro 22H2 (Build 19045.7807), WSL2 3.0.1.0

Installation method

GitHub release binary

Command
supabase start
Actual output
Local Supabase startup failed because the project's Docker network was removed before the database container started.

Error:


network supabase_network_<local-project-id> not found


Docker API event timeline (UTC, October 26, 2026):

- 23:58:32.881 — Project network created
- 23:58:33.231 — Database volume created
- 23:58:35.587 — POST /v1.56/networks/prune, filtered by the local Supabase project label
- 23:58:36.634 — Project network destroyed
- 23:58:37.029 — Database container created referencing the deleted network

Docker API user agent: Docker-Client/29.9.2 (windows).

The Docker Engine did not restart. No application SQL or migrations were executed. The process responsible for the prune request has not been conclusively identified.
Expected behavior

The Supabase CLI should preserve the project's Docker network while creating and starting the PostgreSQL, Auth, and PostgREST containers.

The database container should attach successfully to the project network, and the local stack should start without an unexpected project-network deletion.

Steps to reproduce
  1. Install Supabase CLI 2.122.0 on Windows 10 with Docker Desktop using the WSL2 backend.
  2. Initialize a fresh isolated local project using supabase init.
  3. Configure local-only URLs, the public Data API schema, and disable automatic migrations and seed execution.
  4. Confirm Docker Desktop is running with the desktop-linux context.
  5. Run supabase start.
  6. Observe the Docker network and container lifecycle events.

Observed: the project network was created and then pruned before the database container started.

This occurred during one observed startup attempt. Reproduction across repeated attempts has not been established.

Crash report ID

No response

Docker and service versions
Docker Desktop: 4.97.0 (244584)
Docker Client: 29.9.2
Docker Engine: 29.9.2
Docker API: 1.56
Docker context: desktop-linux
Server OS/Architecture: linux/amd64
containerd: 2.4.2
runc: 1.5.2
WSL version: 3.0.1.0
WSL default version: 2

Supabase CLI: 2.122.0

Local Supabase services did not become healthy. PostgreSQL, Auth, and PostgREST were not started successfully.
Additional context

The failure appears to involve a project-filtered Docker network-prune request occurring during startup.

The exact calling process is unknown. The timing is consistent with a Supabase CLI cleanup path or overlapping CLI processes, but neither is confirmed.

No Docker Engine restart, custom firewall configuration, or unrelated scheduled network-pruning service was identified.

Related issue: https://github.com/supabase/cli/issues/6136

That issue differs because PostgreSQL became healthy before cleanup. In this case, the project network was destroyed before database container startup.

No hosted Supabase project, production database, credentials, or customer records were involved.

Please advise whether this is a known cleanup-order/concurrency issue and whether an officially supported workaround or patched release is available.

主要语言
TypeScript
星标
2.4k
派生
537
平均合并
18 小时 2 分钟
30 天内合并 PR
387

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

supabase/cli 的其他 Issue

查看 supabase/cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。