Centos8中yum安装docker问题

问题:执行yum update 报错 problem with installed package containers-common-2:1-2.module_el8.5.0+890+6b136101.noarch

执行下面的containerd.io版本安装即可

yum install https://download.docker.com/linux/centos/8/x86_64/stable/Packages/containerd.io-1.4.3-3.1.el8.x86_64.rpm --allowerasing

解决:
        1.备份之前的yum源 mv /etc/yum.repos.d /etc/yum.repos.d.backup

        2.创建一个新的yum.repos.d目录  mkdir /etc/yum.repos.d

        3.执行以下命令以清理旧的yum源缓存 yum clean all

        4.安装新的yum源

wget http://mirrors.aliyun.com/repo/Centos-8.repo
 
wget  http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
 
yum install -y epel-release
 
mv *.repo /etc/yum.repo.d/

5.更新yum源  yum update

6. 安装docker yum install -y docker-ce

7.开启docker

systemctl start docker.service 
systemctl enable docker.service 
systemctl status  docker.service 
docker version

在宝塔中安装docker会出现下面问题:

You should consider upgrading via the '/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip' command.

解决:/www/server/panel/pyenv/bin/python3.7 -m pip install --upgrade pip
        

你可能感兴趣的:(docker,linux,运维)