CentOS installation Docker and error resolution process

    问题: package docker-ce-3:19.03.2-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
- cannot install the best candidate for the job
- 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 uninstallable packages or '--nobest' to use not only best candidate packages)

   Examination revealed containerd.io this package is installed, but is version 1.2.0; it is the cause of this failure is containerd.io installation package version is too low

Solution:

  1. Check Docker version, low installation version, without installing a new version Docker (this is not to introduce cumbersome installation process of a lower version)

    [Root @ localhost ~] # yum list docker-ce --showduplicates | sort -r // Check the appropriate package version

 

     [Root @ localhost ~] # yum -y install docker-ce-18.06.0.ce-3.el7 // install a lower version of the package

 

     2. Install the new version of the package containerd.io

  containerd.io Package Download: https: //download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm

   [Root @ localhost ~] #wget https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm // download software package

    [Root @ localhost ~] # yum -y install containerd.io-1.2.6-3.3.el7.x86_64.rpm // upgrade package containerd.io

   After the installation is complete reinstall Docker

   [Root @ localhost ~] # yum -y install docker-ce // package mounting Docker

   After the installation is complete, start Docker

    [Root @ localhost ~] # systemctl start docker // CentOS7 start method

    [Root @ localhost ~] #server docker start // CentOS6 start method 

    After a review of the state of discovery has been launched successfully

Guess you like

Origin www.linuxidc.com/Linux/2019-10/160948.htm