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

【已解答】docker报错,左边docker按钮也不好用

发表在 Linux面板2023-9-6 15:00 [复制链接] 3 2206

本帖最后由 堡塔运维香菜卷 于 2023-9-6 15:36 编辑

为了能快速了解并处理您的问题,请提供以下基础信息:
面板、插件版本:

宝塔8.0.2免费版
系统版本:

deepin linux 20.7.1 X86-64
问题描述:

docker报错,左边docker按钮也不好用
相关截图(日志、错误):

REQUEST_DATE: 2023-09-06 14:57:23 PAN_VERSION: 8.0.2  OS_VERSION: Deepin GNU/Linux 20.7.1 x86_64(Py3.7.16) REMOTE_ADDR: 172.16.6.182 REQUEST_URI: POST /plugin%3Faction%3Da%26name%3Ddocker%26s%3DGetConListREQUEST_FORM: {}  USER_AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36Traceback (most recent call last):  File "class/panelPlugin.py", line 3164, 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/plugin/docker/docker_main.py", line 59, in GetConList    for con in self.__docker.containers.list(all=True):AttributeError: 'NoneType' object has no attribute 'containers'

此方法已试过不好用Ubuntu/Debian1、删除之前安装的dockerapt-get remove docker docker-engine docker.io2、安装依赖apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common3、添加信任的依赖(debian)curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -Ubuntu:curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -4、添加软件仓库(debian)add-apt-repository \   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \   $(lsb_release -cs) \   stable"Ubuntu:add-apt-repository \   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \   $(lsb_release -cs) \   stable"5、安装apt-get updateapt-get install docker-ceCentOS/RedHat1、删除之前安装的dockeryum remove docker docker-common docker-selinux docker-engine2、安装一些依赖yum install -y yum-utils device-mapper-persistent-data lvm2 wget3、配置docker的安装源wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo4、将安装源替换成清华源sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.rpo5、安装yum makecache fastyum install docker-ce这个也试过,不好用
截图_选择区域_20230906145331.png
截图_选择区域_20230906145341.png
截图_选择区域_20230906145355.png
截图_选择区域_20230906145402.png
截图_选择区域_20230906145450.png
截图_选择区域_20230906145918.png
使用道具 举报 只看该作者 回复
发表于 2023-9-6 15:01:48 | 显示全部楼层
Ubuntu/Debian
1、删除之前安装的docker
apt-get remove docker docker-engine docker.io
2、安装依赖
apt-get install apt-transport-https ca-certificates curl gnupg2 software-properties-common
3、添加信任的依赖(debian)
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Ubuntu:
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
4、添加软件仓库(debian)
add-apt-repository \
   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
   $(lsb_release -cs) \
   stable"
Ubuntu:
add-apt-repository \
   "deb [arch=amd64] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/ubuntu \
   $(lsb_release -cs) \
   stable"

5、安装
apt-get update
apt-get install docker-ce

CentOS/RedHat
1、删除之前安装的docker
yum remove docker docker-common docker-selinux docker-engine
2、安装一些依赖
yum install -y yum-utils device-mapper-persistent-data lvm2 wget
3、配置docker的安装源
wget -O /etc/yum.repos.d/docker-ce.repo https://download.docker.com/linux/centos/docker-ce.repo
4、将安装源替换成清华源
sed -i 's+download.docker.com+mirrors.tuna.tsinghua.edu.cn/docker-ce+' /etc/yum.repos.d/docker-ce.r
po
5、安装
yum makecache fast
yum install docker-ce
使用道具 举报 回复 支持 反对
发表于 2023-9-6 15:02:34 | 显示全部楼层
上面两种方法均已试过不好用
使用道具 举报 回复 支持 反对
发表于 2023-9-6 15:36:02 | 显示全部楼层
您好,您的操作系统目前为在脚本进行兼容安装docker服务,您可以尝试自行通过安装命令来进行安装docker服务后看看是否能正常使用。
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

工作时间:09:00至18:30

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