安装docker时,下载安装包超时

Posted 听雨长风

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了安装docker时,下载安装包超时相关的知识,希望对你有一定的参考价值。

配置好官方源后,yum install docker-ce 一直报错https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: [Errno 12] Timeout on https://download.docker.com/linux/centos/7/x86_64/stable/repodata/repomd.xml: (28, ‘Operation timed out after 30002 milliseconds with 0 out of 0 bytes received‘)
Trying other mirror.

目前我的方法是通过代理访问get.docker.com  下载脚本 get-docker.sh
然后在服务器上执行$ sudo sh get-docker.sh --mirror Aliyun

脚本就会自动的将一切准备工作做好,并且把 Docker CE 的 Edge 版本安装在系统中

以上是关于安装docker时,下载安装包超时的主要内容,如果未能解决你的问题,请参考以下文章

centos 7离线安装docker, 离线安装docker-compose

docker 下载安装Elasticsearch——网络超时解决办法(net/http: TLS handshake timeout)

Docker的下载安装以及简单使用

MacBook安装Docker

二进制包安装docker

安装包 安装docker