centos8安装docker

centos8安装docker

安装依赖

yum install -y yum-utils device-mapper-persistent-data lvm2

添加yum仓库

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum makecache

报错如下

1、containerd.io过低

package docker-ce-3:20.10.7-3.el8.x86_64 requires containerd.io >= 1.4.1, but none of the providers can be installed

解决方式:

主动安装高版本的containerd.io

去这找最新版:https://download.docker.com/linux

containerd.io具体地址:https://download.docker.com/linux/centos/8/x86_64/stable/Packages/

dnf install  https://download.docker.com/linux/centos/7/x86_64/stable/Packages/containerd.io-1.4.6-3.1.el7.x86_64.rpm

2、CentOS 8 中安装 Docker 出现和 Podman 冲突的问题

package podman-3.1.0-0.13.module_el8.5.0+733+9bb5dffa.x86_64 requires runc >= 1.0.0-57, but none of the providers can be installed

解决方式:

yum erase podman buildah

然后在执行安装

yum install docker-ce docker-ce-cli containerd.io -y
posted @ 2021-08-26 19:22  1769987233  阅读(120)  评论(0编辑  收藏  举报