【待修复】docker 容器修改端口后重启错误
出错了,面板运行时发生错误!Exception: not enough values to unpack (expected 2, got 1)
REQUEST_DATE: 2024-01-05 21:29:47VERSION: CentOS8.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)
该问题已经记录了,正在处理中
页:
[1]