Skip to content

[Bug] Container upgrade failed(web&api) #13118

Description

@N1ceHarry

Contact Information

gooodharry@gmail.com

1Panel Version

2.2.2

Problem Description

两个问题,原版本2.1.X,升级到2.2.2之后出现以下两个问题:
1、在看板上对某个容器进行升级,升级后出现下面的日志,同时,当前容器就自动消失了。因为我的容器是根据编排启动的,假设这个编排本来是2/2,这个时候,编号那里就变成了1/1。(没有在编排中指定network,默认会生成xxxx.default网络配置)
2、在CI/CD中,通过/api/v2/containers/upgrade来升级容器,在token以及签名都正确的请下,访问立马返回:{"code":200,"message":"success","data":null},实际容器那边没有任何变化。

2026/06/26 02:23:27 升级镜像 [xxxxxx/xxxxx:latest] 任务开始 [START]
2026/06/26 02:23:27 开始拉取容器镜像 xxxxxx/xxxxx:latest
2026/06/26 02:23:27 拉取容器镜像 xxxxxx/xxxxx:latest 成功
2026/06/26 02:23:27 ----------------- admin-service -----------------
2026/06/26 02:23:27 获取容器基本信息 成功
2026/06/26 02:23:28 删除原容器 admin-service 成功
2026/06/26 02:23:28 容器更新失败,现在开始恢复原容器
2026/06/26 02:23:28 创建新容器 admin-service 失败: upgrade container failed, err: Error response from daemon: invalid config for network admin-service_default: invalid endpoint settings:
user specified IP address is supported only when connecting to networks with user configured subnets
2026/06/26 02:23:29 [TASK-END]

Steps to Reproduce

容器 -> 容器 -> 更多(某个容器) -> 升级

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions