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
2、安装依赖环境
yum install -y yum-utils device-mapper-persistent-data lvm2
3、添加docker源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
4、安装docker-ce
yum install docker-ce
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
4、再次安装docker-ce
yum install docker-ce
此时查看docker版本
docker -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
————————————————
版权声明:本文为CSDN博主「欧阳大仙萌萌哒」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/shana_8/article/details/105190368