如何解決在centos中安裝docker失敗?
CentOS 安裝Docker報錯訊息:
檢查發現containerd.io此軟體包已經安裝,但版本是1.2.0;所以造成這種安裝失敗的原因是containerd.io軟體包版本過低解決方法:問題: 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 excludpackage containncloo .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 '--skiskip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
1.檢查Docker版本,安裝低版本,不進行安裝新版本Docker(在此就不繁瑣介紹低版本的安裝過程了)
[root@localhost ~]# yum list docker-ce --showduplicates | sort -r //检查相应的软件包版本
[root@localhost ~]# yum -y install docker-ce-18.06.0.ce-3.el7 //安装低版本的软件包 [object Object]
2.安裝新版的containerd.io軟體包
containerd.io软件包下载地址: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 //下载相关软件包#
[root@localhost ~]# yum -y install containerd.io-1.2.6-3.3.el7.x86_64.rpm //升级containerd.io软件包
#
[root@localhost ~]# systemctl start docker //CentOS7启动方法 [root@localhost ~]#server docker start //CentOS6启动方法
rrreee
安裝完成後重新安裝Docker [root@localhost ~]# yum -y install docker-ce / // 軟體包 安裝完成後啟動Dockerrrreee
檢視狀態後發現已啟動成功#############以上是如何解決在centos中安裝docker失敗的詳細內容。更多資訊請關注PHP中文網其他相關文章!