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

【已解决】[Docker管理器]运行时发生错误!

发表在 Linux面板2023-9-14 13:16 [复制链接] 4 2260

本帖最后由 堡塔运维小林 于 2023-9-14 15:25 编辑

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

Docker 3.9.2 宝塔 8.0.2
系统版本:

Linux Mint 21.2 Victoria x86_64(Py3.7.16)
问题描述:

[url=]AttributeError: 'NoneType' object has no attribute 'containers',我用[/url]命令看docker服务安装提示是Unit docker.service could not be found.
相关截图(日志、错误):

微信截图_20230914131521.png
REQUEST_DATE: 2023-09-14 13:16:04 PAN_VERSION: 8.0.2  OS_VERSION: Linux Mint 21.2 Victoria x86_64(Py3.7.16) REMOTE_ADDR: 127.0.0.1 REQUEST_URI: POST /plugin%3Faction%3Da%26name%3Ddocker%26s%3DGetConListREQUEST_FORM: {}  USER_AGENT: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36Traceback (most recent call last):  File "pluginAuth.py", line 449, in pluginAuth.Plugin.exec_fun  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'
使用道具 举报 只看该作者 回复
发表于 2023-9-14 13:44:04 | 显示全部楼层
本帖最后由 ATimor 于 2023-9-14 15:33 编辑

使用道具 举报 回复
发表于 2023-9-14 14:22:36 | 显示全部楼层
ATimor 发表于 2023-9-14 13:44
微信联系:SilentCareer
QQ:996191441
愿意远程协助

您好,您复制下面的命令到终端中执行,手动去安装docker,看看能否成功
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.repo
5、安装
yum makecache fast
yum install docker-ce


使用道具 举报 回复 支持 反对
发表于 2023-9-14 15:25:16 | 显示全部楼层
堡塔运维小林 发表于 2023-9-14 14:22
您好,您复制下面的命令到终端中执行,手动去安装docker,看看能否成功
Ubuntu/Debian
1、删除之前安装的d ...

已经解决,谢谢~
使用道具 举报 回复 支持 反对
发表于 2023-9-18 22:57:28 | 显示全部楼层
堡塔运维小林 发表于 2023-9-14 14:22
您好,您复制下面的命令到终端中执行,手动去安装docker,看看能否成功
Ubuntu/Debian
1、删除之前安装的d ...

大佬,我手动也不行哎
使用道具 举报 回复 支持 反对
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

普通问题处理

论坛响应时间:72小时

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

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

紧急运维服务

响应时间:3分钟

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

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

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

点击联系技术免费分析

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

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