centos 安装docker 异常处理

在阿里云服务器安装docker的时候,由于docker官方镜像一直安装失败,
错误信息如下

Downloading packages:
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
(1/2): libtool-ltdl-2.4.2-22.el7_3.x86_64.rpm                                                                           |  49 kB  00:00:00
docker-ce-17.12.0.ce-1.el7.cen FAILED                                                                       ]  1.9 B/s | 145 kB 4769:37:02 ETA
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17.12.0.ce-1.el7.centos.x86_64.rpm: [Errno 12] Timeout on https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17.12.0.ce-1.el7.centos.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.
docker-ce-17.12.0.ce-1.el7.cen FAILED                                                                       ]  6.3 B/s | 239 kB 1407:53:41 ETA
https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17.12.0.ce-1.el7.centos.x86_64.rpm: [Errno 12] Timeout on https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17.12.0.ce-1.el7.centos.x86_64.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds')
Trying other mirror.

这时由于在国内访问国外源官方镜像失败的缘故,修改为阿里云的源,然后下载镜像的速度就嗖嗖嗖。。。

yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

然后在执行下载操作即可sudo yum install docker-ce docker-ce-cli containerd.io

转载于:https://www.cnblogs.com/narutoNinja/p/11285338.html

你可能感兴趣的:(centos 安装docker 异常处理)