当前位置:论坛首页 > BUG提交 > Linux面板

【待修复】docker 容器修改端口后重启错误

发表在 BUG提交2024-1-5 21:32 [复制链接] 1 1288

Snipaste_2024-01-05_21-31-34.png



出错了,面板运行时发生错误!Exception: not enough values to unpack (expected 2, got 1)
REQUEST_DATE: 2024-01-05 21:29:47  VERSION: CentOS  8.5.2111 x86_64(Py3.7.9)  -   8.0.5 REMOTE_ADDR: 192.168.20.175 REQUEST_URI: POST /btdocker/container/upgrade_container?REQUEST_FORM: {'data': '{"id":"dc315f3cd3ef1a269c380e3ff0f79daadeb6253f25efdbe3dfc44405355db0b0","new_name":"dns server","new_image":"technitium/dns-server:11.4.1","new_publish_all_ports":"0","new_port":{"5380/tcp":"5380","53/tcp/udp":"53"},"new_network":"bridge","new_ip_address":"","new_command":"","new_entrypoint":"","new_auto_remove":"0","new_privileged":"0","new_restart_policy":{"Name":"always"},"new_mem_reservation":"0","new_cpu_quota":0,"new_mem_limit":"0","new_labels":",\\n","new_environment":"DNS_SERVER_ADMIN_PASSWORD=123465,\\nDNS_SERVER_DOMAIN=dns-server,\\n","new_volumes":{"/www/docker/data":{"bind":"/etc/dns","mode":"rw"}}}'}  USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36Traceback (most recent call last):  File "/www/server/panel/class/btdockerModel/containerModel.py", line 310, in upgrade_container    new_container_config = self.structure_new_container_conf(get)  File "/www/server/panel/class/btdockerModel/containerModel.py", line 467, in structure_new_container_conf    "labels": dp.set_kv(new_labels) if type(new_labels) != dict else new_labels,  File "/www/server/panel/class/btdockerModel/dk_public.py", line 92, in set_kv    k, v = i.split('=')ValueError: not enough values to unpack (expected 2, got 1)During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/www/server/panel/BTPanel/__init__.py", line 2301, in publicObject    res = run_obj.run(toObject, defs, get)  File "/www/server/panel/BTPanel/__init__.py", line 2248, in run    result = getattr(toObject, get.action)(get)  File "class/panelController.py", line 81, in model    result = PluginLoader.module_run(module_name,def_name,pdata)  File "/www/server/panel/class/btdockerModel/containerModel.py", line 385, in upgrade_container    raise Exception(a)Exception: not enough values to unpack (expected 2, got 1)


使用道具 举报 只看该作者 回复
发表于 2024-1-6 15:17:42 | 显示全部楼层
该问题已经记录了,正在处理中
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

问题处理方式:排队(仅解答)

工作时间:白班:9:00 - 18:00

紧急运维服务

响应时间:3分钟

问题处理方式:宝塔专家1对1服务

工作时间:工作日:9:00 - 18:30

宝塔专业团队为您解决服务器疑难问题

立即付费处理

工作时间:09:00至24:00

快速回复 返回顶部 返回列表