Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP(S) connections inside container are very slow #617

Closed
mikedavies-dev opened this issue Nov 17, 2016 · 2 comments
Closed

HTTP(S) connections inside container are very slow #617

mikedavies-dev opened this issue Nov 17, 2016 · 2 comments

Comments

@mikedavies-dev
Copy link

Problem description

I'm using Docker for Mac v1.12.3, the problem I am having is that that HTTP and HTTPS connections are very slow. DNS and Ping seem fine but HTTP(S) takes for example 5 seconds on the docker image but 0.05 seconds on the host:

Host (MacOS Sierra):
time curl www.google.com
0.05 real 
0.00 user 
0.00 sys

Docker:
time curl www.google.com
real 0m5.615s
user 0m0.010s
sys	0m0.000s

Project version(s) affected

Docer for Mac 1.12.3

@mikedavies-dev
Copy link
Author

The issue was related to DNS settings the container. Using the --dns with docker run to provide a known server resolves the issue.

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

/lifecycle locked

@docker docker locked and limited conversation to collaborators Nov 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants