本帖最后由 堡塔运维香菜卷 于 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这个也试过,不好用 |
|