CentOS 8安装Docker报错(Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.)

CentOS8安装docker和docer-conpose

报错如下
Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed

不废话,直接上步骤

1、yum更新

yum update

CentOS 8安装Docker报错(Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.)_第1张图片
2、安装依赖环境

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

CentOS 8安装Docker报错(Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.)_第2张图片

3、添加docker源

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

docker
4、安装docker-ce

yum install  docker-ce

CentOS 8安装Docker报错(Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.)_第3张图片
Error:
Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed

此时需要安装新版containerd.io

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

CentOS 8安装Docker报错(Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.)_第4张图片
4、再次安装docker-ce

yum install  docker-ce 

CentOS 8安装Docker报错(Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.)_第5张图片
此时查看docker版本

docker -v

v
5、直接拉取github上docker-compose

curl -L https://github.com/docker/compose/releases/download/1.24.0-rc1/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose

在这里插入图片描述
6、赋权限

 chmod +x /usr/local/bin/docker-compose
 

在这里插入图片描述
安装完成,查看版本

docker-compose --version

在这里插入图片描述

请开始CENTOS 8 下 DOCKER之旅~

你可能感兴趣的:(容器技术)