First, the system environment
1.1, Centos version information
[root@Centos8Node1 ~]# cat /etc/os-release NAME="CentOS Linux" VERSION="8 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Linux 8 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/" CENTOS_MANTISBT_PROJECT="CentOS-8" CENTOS_MANTISBT_PROJECT_VERSION="8" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="8"
1.2, Docker source profile
[root@Centos8Node1 ~]# cat /etc/yum.repos.d/Docker-ce.repo [docker-ce-stable] name=Docker CE Stable - $basearch baseurl=https://mirrors.aliyun.com/docker-ce/linux/centos/7/$basearch/stable enabled=1 gpgcheck=1 gpgkey=https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
Second, the installation Docker
2.1, the default installation
[root @ Centos8Node1 ~] # yum install -y docker- ce last metadata expired inspection: 0 : 13 : 32 before execution in 2020 on Saturday, April 4 00 18 minutes and 50 seconds. Error: Problems: Package Docker -ce- . 3 : 19.03 . . 8 - . 3 .el7.x86_64 The requires containerd.io> = 1.2 . 2 - . 3 , But none of Providers The CAN BE Installed - CAN Not the install The Best Candidate for The Job - containerd.io- Package 1.2 . 10 - 3.2.el7.x86_64 is excluded - package containerd.io-1.2.13-3.1.el7.x86_64 is excluded - package containerd.io-1.2.2-3.3.el7.x86_64 is excluded - package containerd.io-1.2.2-3.el7.x86_64 is excluded - package containerd.io-1.2.4-3.1.el7.x86_64 is excluded - package containerd.io-1.2.5-3.1.el7.x86_64 is excluded - package containerd.io-1.2.. 6 - 3.3 .el7.x86_64 IS excluded (try to add ' --skip-Broken ' to skip or not installed package ' --nobest ' to the package using only the best choice)
https://download.docker.com/linux/centos/ #Docker official source
Whether Ali Docker official source or sources are only RPM package Centos7, so the source is not the problem. As can be seen from the above information, the latest when the Docker, yum program is not automatically installed container.io corresponding program,
So there are two ways to solve this.
2.2, install the lower version Docker
2.2.1, the version that can be installed Docker inquiry
yum list docker-ce --showduplicates|sort -r
At this time, a list of all the current stable release version that can be installed in here as an example to version 18.06.3.ce-3.el7
yum install -y docker-ce-18.06.3.ce-3.el7 -q
At this time, docker on the successful installation and start up, the next method.
2.2.2, manually install container.io
First, in an environment of already installed docker, try installing the latest docker
It can be seen at this time is still being given, it can only manually install this container.io, open the following Web site
https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/edge/Packages/
Select the latest version copy URL, then execute the following command
Installation containerd.io
yum install -y https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
Installation Docker
yum install -y docker-ce
At this point, Docker latest version has been successfully installed and started up