一、先删除:
rpm -e bclinux-license-manager-4.0-1.oe1.bclinux.x86_64
如果不删除的话:
二、配置yum源,可以使用自带的yum源。
执行以下命令清除原有yum缓存。
yum clean all
执行yum makecache
(刷新缓存)或者yum repolist all
(查看所有配置可以使用的文件,会自动刷新缓存)。
三、下载Docker依赖的环境:
命令:
yum install -y yum-utils
可能会出现下面的错:
解决方法:
下载可用的.repo文件
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
sudo yum install -y --releasever=8 yum-utils
设置Docker仓库:
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
安装yum-utils
yum install -y yum-utils
报错如下:
解决方法:
vim /etc/yum.repos.d/docker-ce.repo
改成这样:
然后在:
yum clean all
yum makecache
安装Docker Engine:
sudo yum install docker-ce
报错如下:
解决方法:
sudo yum install https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-18.09.2-3.el7.x86_64.rpm
安装过程中可能会报如下错误:
Problem: package docker-ce-3:18.09.9-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
根据报错所提示,需要containerd.io的版本 >= 1.2.2-3。
- 下载最新的containerd.io包
yum install -y https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.13-3.1.el7.x86_64.rpm
命令:systemctl start docker
安装完毕: