-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
docker-compose slow on docker for mac os beta #3419
Comments
ping @FrenchBen 😄 |
+1 |
got the same issue :D |
@smith64fx problem also goes away if you turn off your WiFi? |
@stijn Yes, when i turn off wifi everything works like charm Von meinem iPhone gesendet
|
@smith64fx I see from your signature that you are likely from Germany (or Austria/switzerland). Do you mind me asking what is your Internet provider? I'm wondering if we have the same, and if it could be coming from the box which does not look like a very good piece of hardware/software and would not act as thought by docker. (I am with Vodafone and I have their easybox-whatever) |
Same issue on a wired network (corporate network), as soon as I un plug it everything is very fast. So I'm positive it is not related to you specific provider. I've looked at the verbose output, there is no obvious error (nor anywhere in the system logs). Did notice this though: With no networking, these lines are grouped together:
Without networking, I get ~100-200 lines of 'compose.parallel.feed_queue: Pending: set([])' between the attach <- and where it returns with attach -> ... Before this point there is a lot more happening with network as well, but mostly just more calls to inspect image etc it seems. I've attached the output of compose --verbose up for bot situations. The compose file is just two containers straight from the hub. |
@holstvoogd oh, ok for the provider. Thanks for the info, I was a bit worried :) |
@Erwyn @smith64fx To confirm, you're always connected (hard-wired) and at the same time use the same network with wifi? |
@FrenchBen No it's only in the wifi network in my home. At my office it's super fast. But the thing is, everything else at home runs fast, except docker-compose ^_^" |
@FrenchBen same as @smith64fx. It's only wifi at home so there is no wired connection involved. And as I can see @holstvoogd seems to have the same issue with a wired connection. |
I am noticing the same issue with Docker for Mac Beta.
|
Hi, Is there any news about this? I have same issue. Compose/Docker/OSX versions are same as @eugenesia has. I thought maybe it is something related to DNS server of my ISP (home and office internet providers are different) and I tried to use some public DNS including Google's one but it didn't help. If I turn WiFi off then |
@krydos A new release should be coming out this week with some speed improvements |
I have the same issue, after updating to docker for mac 1.11.1-beta13, the problem persists. The workaround by switching the network(s) off and on again does not work anymore, the services start fast when switching the network off, but when switching the network on again, the services is no longer accessible and the docker daemon is not responding
|
I've had the same issues, and found a post (sorry, lost the ref) mentioning docker-compose is trying to resolve For now I've pointed
|
Thanks @jewilmeer, that looks useful |
I switched back using virtualbox with docker-machine. Problem doesn't exist and it's up to 10x faster than Docker Mac Beta! |
@smith64fx please keep your comments constructive; it's a beta, it's not a finished product yet, so bugs and performance issues are expected. It's exactly these kind of issues that need reporting (and testing) to resolve them. |
super awesome comment, @jewilmeer! For me I had to add a few more addresses to /etc/hosts which I discovered using your
After those additions -- speedy! Actually, amazingly speedy, seems a good bunch faster than when using Docker Toolbox! woop woop :) (Though that may be a highly subjective observation!) |
That is pretty odd, but seems to point at what the underlying issue is... |
I'm currently facing this same issue and I can't resolve the problem. We're using docker-compose with a web container linked to four service containers (postgres, redis, rabbitmq, elasticsearch). Connecting to any of the four service containers directly from OSX is fine. It's only slow when trying to connect from the web container to any of the service containers. Running
and this is the output when on our office wifi:
So it looks like something with reverse DNS lookup but I'm unsure of how to troubleshoot. Disabling wifi completely guarantees this slowness as well. Disabling and re-enabling doesn't help. |
Of course you find your own solution right after you post the question. It looks like an installed package in our dev environment updated DNS settings in OSX which cause the problem. Once I reset the OSX DNS to use the defaults in /etc/resolv.conf, everything works. |
Could this be related to the issue with Bonjour 'owning' |
Dunno if this helps but I used to have this issue and I fixed it by changing my DNS servers to Also this issue only happened on my Home network. At work I did not have this issue. |
I am also facing the same issue even after trying @jewilmeer's fix. docker --version docker-compose --version docker-machine --version |
Not sure why but I had to remove any local domain element to make it work. /etc/hosts: |
I have a very similar issue, but I think it may be related to my use of DNSCrypt? |
I'd run the line to monitor dns that was in the original post on the fix:
That showed me that what I needed to add to my hostfile was:
seems something changed from .local to .localdomain? |
I have since done a fresh install of 10.12 Sierra. I reinstalled docker and could not reproduce the issue. |
I ran in to this issue today, my first day on Mac. |
Same bug here. I have to add in the three lines to /etc/hosts to solve this problem. |
Same bug. This worked for me.
|
I added |
Still a problem on the latest version. The above fixes don't seem to do anything for me, at some point it just gets so slow that it hangs. The workaround for me is to restart Docker for mac every so often. |
Confirmed that |
adding |
The solution @norbertsienkiewicz recommended worked perfectly for me. It dropped my |
I'm actually more curious as to why this started happening in the first place. It seems a bit silly to me for me to have to modify my hosts file as a workaround to a problem that was recently introduced and have it declared to be the "solution". |
Here is the backtrace that causes the spurious DNS lookup:
|
I just had this problem after switching from wireless to wired. Back to wireless and all is right with the world. |
Are the changes to /etc/host to the host machine or the docker container?? |
Which hosts file to modify ?
|
Genius!!! |
^^^ In the host (OS X). followed by sudo killall -HUP mDNSResponder to restart we went 30% faster this way in catalina, but still way slower than we expect . seems especially helpful for yarn / webpack / npm for steps like slow linking and file gen for many small files. this should have gone away w/ docker/docker-py#1928 so no idea Edit: we're also adding:
|
docker-compose is slow with docker for mac os beta on my home network. Here is my workaround for now:
I do not reproduce the issue on another network than mine, my work network for instance do not make it slow. I already had a potentially related issue with the docker client itself which couldn't pull any image (going to bizarre local ips instead of the docker hub registry) but it has been fixed since one of the latest docker for mac os beta update.
The issue is not reproduced against the docker-toolbox, only the "native" docker for mac.
My version of docker-compose is :
docker-compose version 1.7.0, build 0d7bf73
My version of docker for mac is:
Version 1.11.1-beta10 (build: 6662)
The docker-compose file I'm trying to run is:
The text was updated successfully, but these errors were encountered: