According to docker official website provides docker-compose installation tutorial, install the latest docker-compose on ubuntu machine, the results appear as follows:
Failed to connect to github-production-release-asset-2e65be.s3.amazonaws.com port 443: Connection Timed Out
The installation process is as follows:
$ sudo -i
root @ far: ~ # curl -L https://github.com/docker/compose/releases/download/1.14.0/docker-compose-`uname -s` -uname -m`> / usr / local / bin / docker-compose
% Total% Received% Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 330 0 -: -: - 0:00:01 -: -: - 330
0 0 0 0 0 0 0 0 -: -: - 0:02:12 -: -: - 0curl: (7) Failed to connect to github-production-release-asset-2e65be.s3. amazonaws.com port 443: Connection timed out
problem causes:
Some of the downloaded accesses required by this address (github-production-release-asset-2e65be.s3.amazonaws.com) are blocked domestically, and the hosts file needs to be set to use a Hong Kong server.
Solution:
In the hosts file, add this line:
219.76.4.4 github-cloud.s3.amazonaws.com
Modify the hosts file, in accordance with the docker official website provided docker-compose installation tutorial, reinstall, ok.
sudo -i
root @ far: ~ # curl -L https://github.com/docker/compose/releases/download/1.15.0/docker-compose-`uname -s` -uname -m`> / usr / local / bin / docker-compose
% Total% Received% Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 617 0 617 0 0 327 0 -: -: - 0:00:01 -: -: - 327
100 8650k 100 8650k 0 0 18372 0 0:08:02 0:08:02 -: -: - 16417
root @ far: ~ # exit
Compared with the United States, Hong Kong, the speed of ping, the United States found that the server delay is relatively large
$ ping github-cloud.s3.amazonaws.com
PING github-cloud.s3.amazonaws.com (219.76.4.4) 56 (84) bytes of data.
64 bytes from github-cloud.s3.amazonaws.com (219.76.4.4): icmp_seq = 1 ttl = 50 time = 54.4 ms
64 bytes from github-cloud.s3.amazonaws.com (219.76.4.4): icmp_seq = 2 ttl = 51 time = 90.9 ms
64 bytes from github-cloud.s3.amazonaws.com (219.76.4.4): icmp_seq = 3 ttl = 51 time = 69.8 ms
64 bytes from github-cloud.s3.amazonaws.com (219.76.4.4): icmp_seq = 4 ttl = 50 time = 38.5 ms
$ ping github-cloud.s3.amazonaws.com
PING s3-1-w.amazonaws.com (54.231.49.64) 56 (84) bytes of data.
64 bytes from s3-1-w.amazonaws.com (54.231.49.64): icmp_seq = 1 ttl = 41 time = 253 ms
64 bytes from s3-1-w.amazonaws.com (54.231.49.64): icmp_seq = 3 ttl = 41 time = 253 ms
64 bytes from s3-1-w.amazonaws.com (54.231.49.64): icmp_seq = 4 ttl = 41 time = 254 ms
64 bytes from s3-1-w.amazonaws.com (54.231.49.64): icmp_seq = 5 ttl = 41 time = 253 ms
64 bytes from s3-1-w.amazonaws.com (54.231.49.64): icmp_seq = 6 ttl = 41 time = 253 ms