Tag Archives: Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.

[Solved] CentOS 8 Insltall Docker Error: Problem: package docker-ce-3:19.03.8-3.el7.x86_64 requires containerd.io >= 1.2.

CentOS8 install docker and docer-conpose
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

1.upgrade yum

yum update

2. Installation dependent environment

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

3. Add docker source

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

4. Install 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
Need to install the latest version of 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. Install docker ce again

yum install  docker-ce

View the docker version

docker -v

5. Directly pull docker compose on GitHub

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. Grant authority

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

After installation, check the version

docker-compose --version