自学内容网 自学内容网

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
        


原文地址:https://blog.csdn.net/weixin_40145448/article/details/135685959

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!