安裝docker報錯:https://download.docker.com/linux/centos/7/i386/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"


  如題,執行docker安裝命令報錯:

[root@centos ~]# yum install docker-ce
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
https://download.docker.com/linux/centos/7/i386/stable/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
To address this issue please refer to the below knowledge base article 

https://access.redhat.com/articles/1320623

If above article doesn't help to resolve this issue please open a ticket with Red Hat Support.

Error: Cannot retrieve repository metadata (repomd.xml) for repository: docker-ce-stable. Please verify its path and try again

 

  看起來鏡像鏈接失效了。看了下之前的docker-ce倉庫配置:

[root@centos ~]# ll /etc/yum.repos.d/docker*
-rw-r--r-- 1 root root 2424 Oct 19 05:57 /etc/yum.repos.d/docker-ce.repo

 

  我們看到10月19號有記錄,刪掉它,再試試

[root@centos ~]# rm /etc/yum.repos.d/docker-ce.repo
rm: remove regular file `/etc/yum.repos.d/docker-ce.repo'? y
[root@centos ~]# yum install docker-ce
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
No package docker-ce available.
Error: Nothing to do

 

  看來還是不行,繼續找原因:

[root@centos ~]# uname -r
2.6.32-696.el6.i686
[root@centos ~]# cat /etc/redhat-release
CentOS release 6.9 (Final)

 

  呵呵,docker要求centos是3.10以上才行,歇菜。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM