docker 无法安装
为了能快速了解并处理您的问题,请提供以下基础信息:面板、插件版本:8.0.5系统版本:Debian GNU/Linux 10 (buster) x86_64(Py3.7.9)
问题描述:无法安装 Docker
相关截图(日志、错误):
先是出现假安装,然后在软件管理里一直卸载不掉假安装的 Docker,根据其他帖子底下官方回复的指令连接安装也无法安装
bash /www/server/panel/install/install_soft.sh 0 install docker_bin试了两回,下面是终端的部分
<blockquote>root@debian:~# bash /www/server/panel/install/install_soft.sh 0 install docker_bin
您好,如果面板上无法正常安装,可能是由于您服务器缺少某些组件导致,您可到服务器终端手动进行安装
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 https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian \
$(lsb_release -cs) \
stable"
Ubuntu:
add-apt-repository \
"deb 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
页:
[1]