[Bug] "Clean Networks" deletes protected system network 1panel-network without checking container bindings, leaving all containers unable to start
维护者通常 1 天内回复
@xiaomeinvG 已经在做这个了。
开始于 2026年9月23日。
评估
这个 Issue 还没有评估数据。
描述
Problem Description
Two related defects in the Container → Networks → "Clean Networks" action (v2.3.1):
- Contradicts the official docs: the documentation states that
none,host,bridge, and1panel-networkare built-in system networks that cannot be deleted, yet "Clean Networks" deletes1panel-network. - No binding check before deletion: it does not check whether any containers (including stopped ones) are attached to the network — no warning, no consequence shown. Afterwards every app container bound to that network fails to start.
An aggravating case: cleanup is still allowed while the Docker daemon is unhealthy. In our incident dockerd was in a crash loop (root cause same family as #13814: ip_forward=0 with firewall-backend: nftables). After clicking "Clean Networks", a zombie network was persisted: docker network ls still shows 1panel-network, but after the daemon recovers, docker run --network 1panel-network fails with network ... does not exist, and attaching new containers to it fails as well. Recovery required a manual docker network rm followed by recreating the network with the original subnet.
Steps to Reproduce
- Have dockerd in a startup-failure loop (in our case: Debian 13 with
net.ipv4.ip_forward=0and the nftables backend — the #13814 scenario) - Panel → Containers → Networks → click "Clean Networks"
1panel-networkis deleted (at the moment of the click, dockerd logsError handling plugin refcount operation ... legacy plugin: Unable to find plugin without name)- After the daemon recovers, every attached container fails to start:
failed to set up container networking: failed to create endpoint <name> on network 1panel-network: network <id> does not exist docker network lsstill lists the network (zombie state);docker network rm+ recreating it with the same subnet restores service
Expected Behavior
- "Clean Networks" treats
1panel-networkas protected per the docs; or at minimum: - Before deletion, inspect the network's
Containerslist (including stopped containers) viadocker network inspectand block deletion with a clear message when it is non-empty - Check daemon health before executing the cleanup and abort when the daemon is not healthy
Environment
- OS: Debian 13 (trixie), kernel 6.12
- Docker: 29.8.1,
daemon.jsoncontains"firewall-backend": "nftables" - 1Panel: v2.3.1
- Related: #13814 (another defect in the same incident chain)
- 主要语言
- Go
- 星标
- 37.1k
- 派生
- 3.4k
- 平均合并
- 13 小时
- 30 天内合并 PR
- 82
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
1Panel-dev/1Panel 的其他 Issue
-
[Bug] AI Gateway Concurrency Errors可能已有人在做 @wanghe-fit2cloud 今天认领。 未关闭type: ai-gateway
1Panel-dev/1Panel#14035 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug] Excessive Overhead in the Embedding Gateway可能已有人在做 @wanghe-fit2cloud 今天认领。 未关闭type: ai-gateway
1Panel-dev/1Panel#14034 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug] Website statistics queue cursor is not initialized, causing worker 0 to periodically scan historical sequence numbers and block requests可能已有人在做 @wanghe-fit2cloud 于 1 天前认领。 未关闭type: question
1Panel-dev/1Panel#14028 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Feature] Human Verification可能已有人在做 @wanghe-fit2cloud 于 2 天前认领。 未关闭type: feature-request
1Panel-dev/1Panel#14027 · 3 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[Bug] All models added by the Qwen Token Plan are recognized as text models.可能已有人在做 @wanghe-fit2cloud 于 2 天前认领。 未关闭type: ai-gateway
1Panel-dev/1Panel#14026 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 1Panel-dev/1Panel 的全部 Issue
相似的 Issue
-
documentation help wanted needs-triage
难度 1/5 1-3 小时 新手友好度 75/100
hivecommons/hive#11606 · 2 条评论 ·
维护者通常 1 天内回复
-
documentation
难度 1/5 1 小时以内 新手友好度 85/100
gravitational/teleport#69869 ·
-
category:agent
难度 2/5 1-3 小时 新手友好度 82/100
LanternOps/breeze#8493 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
docs
难度 2/5 1-3 小时 新手友好度 70/100
shaiknoorullah/hg-mono#815 ·
维护者通常 1 天内回复