当前位置:论坛首页 > Linux面板 > 求助

Centos8 在终端运行docker正常,面板docker提示错误

发表在 Linux面板2024-2-25 11:59 [复制链接] 0 769

本帖最后由 不品人间酒 于 2024-2-25 15:41 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本: 8.0.5
系统版本:CentOS 8.5.2111 x86_64
问题描述: 在终端运行docker正常,面板docker提示错误。在终端下都可以正常运行跑,在面板下报错。

相关截图(日志、错误):
  1. 出错了,面板运行时发生错误!
  2. docker.errors.DockerException: Error while fetching server API version: request() got an unexpected keyword argument 'chunked'
复制代码
  1. REQUEST_DATE: 2024-02-25 15:34:26
  2.   VERSION: CentOS  8.5.2111 x86_64(Py3.7.9)  -   8.0.5
  3. REMOTE_ADDR: 192.168.16.1
  4. REQUEST_URI: POST /btdocker/setup/get_config?
  5. REQUEST_FORM: {}
  6.   USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
复制代码
  1. Traceback (most recent call last):
  2.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
  3.     return self.version(api_version=False)["ApiVersion"]
  4.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/daemon.py", line 181, in version
  5.     return self._result(self._get(url), json=True)
  6.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/utils/decorators.py", line 46, in inner
  7.     return f(self, *args, **kwargs)
  8.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 237, in _get
  9.     return self.get(url, **self._set_request_timeout(kwargs))
  10.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 602, in get
  11.     return self.request("GET", url, **kwargs)
  12.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 589, in request
  13.     resp = self.send(prep, **send_kwargs)
  14.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 703, in send
  15.     r = adapter.send(request, **kwargs)
  16.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 497, in send
  17.     chunked=chunked,
  18.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 803, in urlopen
  19.     **response_kw,
  20.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 505, in _make_request
  21.     enforce_content_length=enforce_content_length,
  22. TypeError: request() got an unexpected keyword argument 'chunked'

  23. During handling of the above exception, another exception occurred:

  24. Traceback (most recent call last):
  25.   File "/home/www/www/server/panel/BTPanel/__init__.py", line 2315, in publicObject
  26.     res = run_obj.run(toObject, defs, get)
  27.   File "/home/www/www/server/panel/BTPanel/__init__.py", line 2262, in run
  28.     result = getattr(toObject, get.action)(get)
  29.   File "class/panelController.py", line 81, in model
  30.     result = PluginLoader.module_run(module_name,def_name,pdata)
  31.   File "/www/server/panel/class/btdockerModel/setupModel.py", line 32, in get_config
  32.     "service_status": self.get_service_status(),
  33.   File "/www/server/panel/class/btdockerModel/setupModel.py", line 88, in get_service_status
  34.     client = dp.docker_client()
  35.   File "class/btdockerModel/dk_public.py", line 44, in docker_client
  36.     client = docker.DockerClient(base_url=url)
  37.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/client.py", line 45, in __init__
  38.     self.api = APIClient(*args, **kwargs)
  39.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 197, in __init__
  40.     self._version = self._retrieve_server_version()
  41.   File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 222, in _retrieve_server_version
  42.     'Error while fetching server API version: {0}'.format(e)
  43. docker.errors.DockerException: Error while fetching server API version: request() got an unexpected keyword argument 'chunked'
复制代码

报错和配置.rar

1.01 MB, 下载次数: 383

使用道具 举报 只看该作者 回复
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

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

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