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

【已完成】宝塔docker管理器出错

发表在 Linux面板2023-12-16 23:32 [复制链接] 3 1393

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:8.0.4
系统版本:Debian GNU/Linux 11 x86_64(Py3.7.9)
问题描述:宝塔docker管理器出错
相关截图(日志、错误):

Traceback (most recent call last):  File "class/panelPlugin.py", line 3201, in a    return p.exec_fun(get)  File "class/pluginAuth.py", line 67, in exec_fun    raise public.PanelError(res['msg'])public.PanelError: 面板运行时发生错误: Traceback (most recent call last):  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen    chunked=chunked,  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request    conn.request(method, url, **httplib_request_kw)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1277, in request    self._send_request(method, url, body, headers, encode_chunked)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1323, in _send_request    self.endheaders(body, encode_chunked=encode_chunked)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1272, in endheaders    self._send_output(message_body, encode_chunked=encode_chunked)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1032, in _send_output    self.send(msg)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 972, in send    self.connect()  File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/transport/unixconn.py", line 43, in connect    sock.connect(self.unix_socket)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socketcommon.py", line 628, in connect    raise _SocketError(result, strerror(result))ConnectionRefusedError: [Errno 111] Connection refusedDuring handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send    timeout=timeout  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 720, in urlopen    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/util/retry.py", line 400, in increment    raise six.reraise(type(error), error, _stacktrace)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise    raise value.with_traceback(tb)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 672, in urlopen    chunked=chunked,  File "/www/server/panel/pyenv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 387, in _make_request    conn.request(method, url, **httplib_request_kw)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1277, in request    self._send_request(method, url, body, headers, encode_chunked)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1323, in _send_request    self.endheaders(body, encode_chunked=encode_chunked)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1272, in endheaders    self._send_output(message_body, encode_chunked=encode_chunked)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 1032, in _send_output    self.send(msg)  File "/www/server/panel/pyenv/lib/python3.7/http/client.py", line 972, in send    self.connect()  File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/transport/unixconn.py", line 43, in connect    sock.connect(self.unix_socket)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/gevent/_socketcommon.py", line 628, in connect    raise _SocketError(result, strerror(result))urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))During handling of the above exception, another exception occurred:Traceback (most recent call last):  File "/www/server/panel/plugin/docker/docker_main.py", line 59, in GetConList    for con in self.__docker.containers.list(all=True):  File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/models/containers.py", line 937, in list    since=since)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/container.py", line 211, in containers    res = self._result(self._get(u, params=params), True)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/utils/decorators.py", line 46, in inner    return f(self, *args, **kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/docker/api/client.py", line 230, in _get    return self.get(url, **self._set_request_timeout(kwargs))  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 546, in get    return self.request('GET', url, **kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 533, in request    resp = self.send(prep, **send_kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/sessions.py", line 646, in send    r = adapter.send(request, **kwargs)  File "/www/server/panel/pyenv/lib/python3.7/site-packages/requests/adapters.py", line 498, in send    raise ConnectionError(err, request=request)requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionRefusedError(111, 'Connection refused'))
QQ截图20231216233136.png
使用道具 举报 只看该作者 回复
发表于 2023-12-18 10:11:42 | 显示全部楼层
您好,您到服务器SSH终端里执行
  1. systemctl status docker
复制代码

看下当前操作系统是否成功安装docker服务?
使用道具 举报 回复 支持 反对
发表于 2023-12-28 20:29:29 | 显示全部楼层
大炮运维V587 发表于 2023-12-18 10:11
您好,您到服务器SSH终端里执行

看下当前操作系统是否成功安装docker服务? ...

解决了 加速源配置错误
使用道具 举报 回复 支持 反对
发表于 2024-1-2 14:57:37 | 显示全部楼层
dpifox 发表于 2023-12-28 20:29
解决了 加速源配置错误

好的,解决就好
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

立即付费处理

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

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