各种版本docker下载的中国开源地址

 最近在群里听说Docker很火,于是自己抱着试试的态度,想玩玩,可是遇到了一些问题,记录下来,方便备忘,也方便防止大家被坑。

     我的虚拟机装的是centos 6.5,百度了好多教程,丫的,都不解释,就一句命令:yum install docker-io,这句话是用源安装docker,可是源一般是国外源,用这个命令因为GFW被墙,根本安装不了。

[plain]  view plain  copy
 
 
 
在CODE上查看代码片派生到我的代码片
  1.  [root@localhost ~]# yum install docker-io  
  2. Loaded plugins: fastestmirror, refresh-packagekit, security  
  3. Loading mirror speeds from cached hostfile  
  4.  * base: mirrors.skyshe.cn  
  5.  * extras: mirrors.skyshe.cn  
  6.  * updates: centosx4.centos.org  
  7. Setting up Install Process  
  8. No package docker-io available.  
  9. Error: Nothing to do  
  10.   
  11.   
  12. <pre name="code" class="plain">[root@localhost ~]# yum install docker  
  13. Loaded plugins: fastestmirror, refresh-packagekit, security  
  14. Loading mirror speeds from cached hostfile  
  15.  * base: mirrors.163.com  
  16.  * extras: mirrors.skyshe.cn  
  17.  * updates: centosx4.centos.org  
  18. Setting up Install Process  
  19. No package docker available.  
  20. Error: Nothing to do  
[plain]  view plain  copy
 
  1.  [root@localhost ~]# yum install docker-io  
  2. Loaded plugins: fastestmirror, refresh-packagekit, security  
  3. Loading mirror speeds from cached hostfile  
  4.  * base: mirrors.skyshe.cn  
  5.  * extras: mirrors.skyshe.cn  
  6.  * updates: centosx4.centos.org  
  7. Setting up Install Process  
  8. No package docker-io available.  
  9. Error: Nothing to do  
  10.   
  11.   
  12. <pre name="code" class="plain">[root@localhost ~]# yum install docker  
  13. Loaded plugins: fastestmirror, refresh-packagekit, security  
  14. Loading mirror speeds from cached hostfile  
  15.  * base: mirrors.163.com  
  16.  * extras: mirrors.skyshe.cn  
  17.  * updates: centosx4.centos.org  
  18. Setting up Install Process  
  19. No package docker available.  
  20. Error: Nothing to do  



 

        总共尝试了好几次,所谓的镜像很不稳定,不是没有找到,就是找到了,下了一半就中途断了,哎,网上总是说一句话搞定,可是一句话搞定要有前提呀,于是乎,我看了开源中国的docker更新记录

         啥也不说成功了,

[php]  view plain  copy
 
 
 
在CODE上查看代码片派生到我的代码片
  1. [root@localhost ~]# yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm  
  2. Loaded plugins: fastestmirror, refresh-packagekit, security  
  3. Loading mirror speeds from cached hostfile  
  4.  * base: mirrors.163.com  
  5.  * extras: mirrors.skyshe.cn  
  6.  * updates: centosx4.centos.org  
  7. Setting up Install Process  
  8. docker-engine-1.7.1-1.el6.x86_64.rpm                                                                                                 | 4.5 MB     00:07       
  9. Examining /var/tmp/yum-root-YSfgzS/docker-engine-1.7.1-1.el6.x86_64.rpm: docker-engine-1.7.1-1.el6.x86_64  
  10. Marking /var/tmp/yum-root-YSfgzS/docker-engine-1.7.1-1.el6.x86_64.rpm to be installed  
  11. Resolving Dependencies  
  12. --> Running transaction check  
  13. ---> Package docker-engine.x86_64 0:1.7.1-1.el6 will be installed  
  14. --> Processing Dependency: libcgroup for package: docker-engine-1.7.1-1.el6.x86_64  
  15. --> Running transaction check  
  16. ---> Package libcgroup.x86_64 0:0.40.rc1-16.el6 will be installed  
  17. --> Finished Dependency Resolution  
  18.   
  19. Dependencies Resolved  
  20.   
  21. ============================================================================================================================================================  
  22.  Package                          Arch                      Version                              Repository                                            Size  
  23. ============================================================================================================================================================  
  24. Installing:  
  25.  docker-engine                    x86_64                    1.7.1-1.el6                          /docker-engine-1.7.1-1.el6.x86_64                     19 M  
  26. Installing for dependencies:  
  27.  libcgroup                        x86_64                    0.40.rc1-16.el6                      base                                                 129 k  
  28.   
  29. Transaction Summary  
  30. ============================================================================================================================================================  
  31. Install       2 Package(s)  
  32.   
  33. Total size: 19 M  
  34. Total download size: 129 k  
  35. Installed size: 20 M  
  36. Is this ok [y/N]: y  
  37. Downloading Packages:  
  38. libcgroup-0.40.rc1-16.el6.x86_64.rpm                                                                                                 | 129 kB     00:00       
  39. Running rpm_check_debug  
  40. Running Transaction Test  
  41. Transaction Test Succeeded  
  42. Running Transaction  
  43.   Installing : libcgroup-0.40.rc1-16.el6.x86_64                                                                                                         1/2  
  44.   Installing : docker-engine-1.7.1-1.el6.x86_64                                                                                                         2/2  
  45.   Verifying  : libcgroup-0.40.rc1-16.el6.x86_64                                                                                                         1/2  
  46.   Verifying  : docker-engine-1.7.1-1.el6.x86_64                                                                                                         2/2  
  47.   
  48. Installed:  
  49.   docker-engine.x86_64 0:1.7.1-1.el6                                                                                                                          
  50.   
  51. Dependency Installed:  
  52.   libcgroup.x86_64 0:0.40.rc1-16.el6                                                                                                                          
  53.   
  54. Complete!  
  55.   
  56.   
  57. [root@localhost ~]# service docker start  
  58. Starting cgconfig service:                                 [  OK  ]  
  59. Starting docker:                                       [  OK  ]  
[php]  view plain  copy
 
  1. [root@localhost ~]# yum install https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-1.7.1-1.el6.x86_64.rpm  
  2. Loaded plugins: fastestmirror, refresh-packagekit, security  
  3. Loading mirror speeds from cached hostfile  
  4.  * base: mirrors.163.com  
  5.  * extras: mirrors.skyshe.cn  
  6.  * updates: centosx4.centos.org  
  7. Setting up Install Process  
  8. docker-engine-1.7.1-1.el6.x86_64.rpm                                                                                                 | 4.5 MB     00:07       
  9. Examining /var/tmp/yum-root-YSfgzS/docker-engine-1.7.1-1.el6.x86_64.rpm: docker-engine-1.7.1-1.el6.x86_64  
  10. Marking /var/tmp/yum-root-YSfgzS/docker-engine-1.7.1-1.el6.x86_64.rpm to be installed  
  11. Resolving Dependencies  
  12. --> Running transaction check  
  13. ---> Package docker-engine.x86_64 0:1.7.1-1.el6 will be installed  
  14. --> Processing Dependency: libcgroup for package: docker-engine-1.7.1-1.el6.x86_64  
  15. --> Running transaction check  
  16. ---> Package libcgroup.x86_64 0:0.40.rc1-16.el6 will be installed  
  17. --> Finished Dependency Resolution  
  18.   
  19. Dependencies Resolved  
  20.   
  21. ============================================================================================================================================================  
  22.  Package                          Arch                      Version                              Repository                                            Size  
  23. ============================================================================================================================================================  
  24. Installing:  
  25.  docker-engine                    x86_64                    1.7.1-1.el6                          /docker-engine-1.7.1-1.el6.x86_64                     19 M  
  26. Installing for dependencies:  
  27.  libcgroup                        x86_64                    0.40.rc1-16.el6                      base                                                 129 k  
  28.   
  29. Transaction Summary  
  30. ============================================================================================================================================================  
  31. Install       2 Package(s)  
  32.   
  33. Total size: 19 M  
  34. Total download size: 129 k  
  35. Installed size: 20 M  
  36. Is this ok [y/N]: y  
  37. Downloading Packages:  
  38. libcgroup-0.40.rc1-16.el6.x86_64.rpm                                                                                                 | 129 kB     00:00       
  39. Running rpm_check_debug  
  40. Running Transaction Test  
  41. Transaction Test Succeeded  
  42. Running Transaction  
  43.   Installing : libcgroup-0.40.rc1-16.el6.x86_64                                                                                                         1/2  
  44.   Installing : docker-engine-1.7.1-1.el6.x86_64                                                                                                         2/2  
  45.   Verifying  : libcgroup-0.40.rc1-16.el6.x86_64                                                                                                         1/2  
  46.   Verifying  : docker-engine-1.7.1-1.el6.x86_64                                                                                                         2/2  
  47.   
  48. Installed:  
  49.   docker-engine.x86_64 0:1.7.1-1.el6                                                                                                                          
  50.   
  51. Dependency Installed:  
  52.   libcgroup.x86_64 0:0.40.rc1-16.el6                                                                                                                          
  53.   
  54. Complete!  
  55.   
  56.   
  57. [root@localhost ~]# service docker start  
  58. Starting cgconfig service:                                 [  OK  ]  
  59. Starting docker:                                       [  OK  ]  

猜你喜欢

转载自www.cnblogs.com/gongguan/p/9052349.html