Failed connect to github-production-release-asset-2e65be.s3.amazonaws.com:443; 连接超时

安装docker-machine的时候, 提示下载错误, 解决方式如下:
1. 错误提示

[root@localhost logs]# curl -L https://github.com/docker/machine/releases/download/v0.16.1/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&     chmod +x /tmp/docker-machine &&     sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   617    0   617    0     0    264      0 --:--:--  0:00:02 --:--:--   264
  0     0    0     0    0     0      0      0 --:--:--  0:02:09 --:--:--     0curl: (7) Failed connect to github-production-release-asset-2e65be.s3.amazonaws.com:443; 连接超时

2. 打开https://www.ipaddress.com/网站, 查询github-production-release-asset-2e65be.s3.amazonaws.com域名所属IP

Failed connect to github-production-release-asset-2e65be.s3.amazonaws.com:443; 连接超时_第1张图片

3. 修改 /etc/hosts, 增加一行

52.216.147.3 github-production-release-asset-2e65be.s3.amazonaws.com

4.成功解决

[root@localhost logs]# curl -L http://github.com/docker/machine/releases/download/v0.16.1/docker-machine-`uname -s`-`uname -m` >/tmp/docker-machine &&     chmod +x /tmp/docker-machine &&     sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0   617    0     0    354      0 --:--:--  0:00:01 --:--:--   980
100 26.8M  100 26.8M    0     0  34003      0  0:13:49  0:13:49 --:--:-- 60532
[root@localhost logs]# docker-machine version
docker-machine version 0.16.1, build cce350d7

你可能感兴趣的:(Docker,docker)