安装docker17.06.0版本报错和解决方法

本人在自己电脑的虚拟机里安装docker ce 17.06.0版本的时候报如下错误:

  

[root@manager2 yum.repos.d]# yum install docker-ce-17.06.0.ce-1.el7.centos.x86_64 -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* extras: mirrors.neusoft.edu.cn
* updates: mirrors.neusoft.edu.cn
Resolving Dependencies
--> Running transaction check
---> Package docker-ce.x86_64 0:17.06.0.ce-1.el7.centos will be installed
--> Processing Dependency: container-selinux >= 2.9 for package: docker-ce-17.06.0.ce-1.el7.centos.x86_64
--> Processing Dependency: libltdl.so.7()(64bit) for package: docker-ce-17.06.0.ce-1.el7.centos.x86_64
--> Running transaction check
---> Package container-selinux.noarch 2:2.55-1.el7 will be installed
---> Package libtool-ltdl.x86_64 0:2.4.2-22.el7_3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================
Installing:
docker-ce x86_64 17.06.0.ce-1.el7.centos docker-ce-edge 21 M
Installing for dependencies:
container-selinux noarch 2:2.55-1.el7 extras 34 k
libtool-ltdl x86_64 2.4.2-22.el7_3 base 49 k

Transaction Summary
=================================================================================================================================================
Install 1 Package (+2 Dependent packages)

Total size: 21 M
Total download size: 21 M
Installed size: 74 M
Downloading packages:
No Presto metadata available for docker-ce-edge
docker-ce-17.06.0.ce-1.el7.cen FAILED
https://download.docker.com/linux/centos/7/x86_64/edge/Packages/docker-ce-17.06.0.ce-1.el7.centos.x86_64.rpm: [Errno 14] curl#35 - "TCP connection reset by peer"
Trying other mirror.


Error downloading packages:
docker-ce-17.06.0.ce-1.el7.centos.x86_64: [Errno 256] No more mirrors to try.

在网上查到原因:由于国内访问不到docker官方镜像的缘故 
可以通过aliyun的源来完成,做如下操作问题解决:yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

再次安装成功:yum install docker-ce-17.06.0.ce-1.el7.centos.x86_64 -y

posted on 2018-05-23 10:07  永远的大空翼  阅读(7289)  评论(0编辑  收藏  举报