Install docker-compose problem

Source: Internet
Author: User
Keywords Ubuntu install docker-compose exception
Tags asset average speed cloud connect failed failed to file hosts

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.