Docker's network configuration, causing Docker to use the Internet very slowly problems and solutions

Source: Internet
Author: User
Tags curl

Background:
While using Docker, there is no specific configuration of the Docker network, but using the network in Docker after a short period of time becomes very slow, curl a network request to about 20s, if curl when specifying IPV4-4 time is 5s. The same URL for Curl on host host is 0.01s.

Workaround:
Then, in the official Docker document, we found that Docker could configure the network option, so it was simply rude to use the

 

Make Docker use the host's network directly to solve the problem, but note that the same network configuration should be aware of the port conflicts, the listening port in Docker if and host conflict will cause the service to start up.

Docker Network Configuration Official documentation
https://docs.docker.com/v1.8/articles/networking/

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.