-
Notifications
You must be signed in to change notification settings - Fork 291
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
Extremely slow on Windows 10 #1936
Comments
general advice for development Here are directories to exclude
What services to configure exclusions on
Do this and you will notice Docker & WSL will be 100x faster |
I am seeing exactly the same thing, I have done as suggested and excluded all the relevant directories from Windows Defender. Is there anything else I should be looking at? |
@campbellm Next step would be to install procmon https://docs.microsoft.com/en-us/sysinternals/downloads/procmon . That gives detailed process activity listing all system calls and open files. That's how I found the above solutions. You may have another background process , or the exclusions above may not have been configured properly |
I have the same issue here, I've added my development folders to the Windows Defender exclusion list without any performance improvement.
Is that a Docker network issue? |
Try to disable windows defender at all, just for testing. You can use Windows Shutup 10 Tool to do this for sure. |
I always disable my vaccine softwares when I run docker. I've assigned more CPU, RAM, SWAP spaces for moby linux, but it never gets better.. I guess it's not the problem of storage access. I think it's related to docker's virtual network accessing speed |
Have been encountering this on a Windows 10 Enterprise (1709) laptop. I strongly suspect that it's related to the use of VPN. I'm using Citrix NetScalar Gateway. The performance of "docker ps" is abysmal when I'm connected, but fine when not. I'm also encountering "No such container" error when trying to stop a container that is running (visible in ps), though whether that's directly related or not, I'm not sure; I don't know enough about the internals, but it all seems communication-related... |
I tried to:
without any improvement... I ended by formatting and reinstalling Windows, everything runs smoothly now. |
I disabled Windows defender and it help a lot. But the network between containers seems slow... any ideas? |
I'm in the same boat, I'd love to hear some tweaks to make docker toolbox run better on Win10. Who's got some tricks? edit: Disabling windows defender seems to help a little but otherwise I haven't found much |
We may need a windows network guru... |
I did something similar to what @laymain did. For me, I somehow had a faulty copy of Hyper-V. It was slow because it straight up wasn't working. In the end, I found out that when Hyper-V has an issue, Docker installs a bunch of weird things and sets your environment variables. I ended up:
Now it works just fine, so that might be worth a short. I did not have to tamper with any antivirus or firewall things. |
Feel free to reopen if it doesn't help, but my issue was solved. |
Same problem, it is working very very very slow, please fix it |
same issue here |
very slow on every simple command! |
very slow. i use a simple php docker image, create a simple php file with an echo and thy need 20 sec to execute on command line like: "php test.php" Update After uninstallation and new install, everything work expected for me. |
Lol, I'm complaining of 7 seconds to start an app... well, I changed my vendor/node_modules directory to a non-mounted volume, and now is 2 seconds. Acceptable time for a daily work. But virtualbox was still faster.... maybe with LCOW it will be better. |
Fresh install never helped in my case... |
@rwrz I can confirm. I copy my project files via rsync into my docker container. This is much faster then work on shared folders. This is a winows docker filesharing problem. |
Same problem, it is working extremely slow, please fix it. |
@kugimiya You should try @hermanvantriest's workaround |
I need to restart everytime that I need to use docker build |
I solved my problem with slow docker by using docker-sync. Response times back to normal |
Not a coincidence, that's the solution that worked for me. Thanks! |
So is this resolved, or are we all waiting for WSL improvements? |
this also works for me |
Is resolved via hacks. This should be closed when WSL improvements are done. |
I'm developing a PHP project on docker with image centos host apache 2. Process a page very slow. After tried all your above suggestions and after I found when I turn on debug from VsCode. It run so fast fast. Surprised me!
Thanks all Guys |
Another thing to check for is active VPN adapters. Go into Control Panel\All Control Panel Items\Network Connections and disable any VPN adapters you aren't using. |
I want to confirm that using a different DNS server (e.g. 8.8.8.8 or 8.8.4.4) worked to resolve the slow response of docker commands. |
Hey guys, I make it happens by removing all IPV6 support and NetBIOS from all network interfaces and now Docker responds almost instantly! |
can you make a detail instruction?
Vào Th 4, 4 thg 12, 2019 vào lúc 23:27 André Fellows <
[email protected]> đã viết:
… Hey guys, I make it happens by removing all IPV6 support and NetBIOS from
all network interfaces and now Docker responds almost instantly!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1936?email_source=notifications&email_token=AEBPJ3TMVMRCZSDYLTPSHQLQW7LANA5CNFSM4EZ32OV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEF5THCI#issuecomment-561722249>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEBPJ3WPF5QCHYZHFQAPJMLQW7LANANCNFSM4EZ32OVQ>
.
|
Sure I do @hiepxanh! On Windows 10: Reboot your computer and verify. I did this yesterday and Docker become very responsive in Powershell and Command prompt. Inside WSL Docker was always faster. I hope this works for you! Edit: Edit 2: Edit 3: |
I have also been experiencing abysmal performance and found that, at least in my case, it was related to pending updates. (I suspect Windows Defender) I was working this morning and everything was fine. Came home this evening and everything sucked. ( As a last resort decided to try checking updates. Three brand new updates were pending (Defender Antivirus Definitions, .NET Framework cumulative updates and Windows cumulative updates) so I installed them, rebooted and now everything seems to be back to normal. It is definitely also worth noting that this only happened when connected via VPN. Without the VPN the In my particular case, it would seem that VPN and Windows Updates are somehow connected, most likely due to the Defender updates. |
For me, the problem disappears immediately when I just disconnect from my regular home WiFi. |
Remove ipv6 of card network windows works for me. |
I am working with docker on win-10. Until before a week was everything working perfectly. Since the last week docker is extremely slow. I tried a lot of things, like uninstall and install again, restart etc. Nothing worked. |
This is exactly because of [x] Send usage statistics. Uncheck this and run faster. |
i can't get docker ps to respond on windows. It started when i ran docker-compose ps, and it didn't respond... I ran docker ps today before I fell asleep, 5 hours later, it is still stuck. very odd. |
We have a project whose complete test suite takes an hour on a MacBook running docker. On a comparable Windows 10 box the unit tests by themselves take over 15 hours (the
|
If your issue is related to windows 10 and using a wifi adapter, try to disable all bridge protocols in the the advanced settings of your wifi adapter. Reference: https://superuser.com/a/540885 |
This comment has been minimized.
This comment has been minimized.
I have this problem since last month, trying to disable ipv6 and netbios from all network, re-install docker, but no luck. I end up using docker via WSL. Weird thing is, I've installed docker for windows in 4 machines, but only one that has problem. |
for me issue was when i have onedrive syncing at same folder stopping onedrive make it 100X faster |
Closed issues are locked after 30 days of inactivity. If you have found a problem that seems similar to this, please open a new issue. Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. |
Please, check https://docs.docker.com/docker-for-win/troubleshoot/.
Issues without logs and details cannot be debugged, and will be closed.
Expected behavior
Be able to run all the commands with relatively good response time.
Actual behavior
The response times are pretty awful. They are on at least 25x slower than the Docker Toolbox.
Information
Diagnostic ID: E8F1D8B2-B010-4076-BF6D-E78E749871E8/2018-04-10_13-17-34
Currently running Windows 10 Pro, with 32GB memory, 1TB SSD, Intel quad-core at 2.8GHz (not hyperthreading processes), so pretty good hardware.
Using Docker for Windows with Hyper-V enabled.
Equally slow on Windows and Linux Containers.
Reset to default and failed to achieve any difference.
Equally slow with cmd, powershell, and git bash terminals.
Settings for Docker increased to 10GB memory and 4 CPU cores with no improvement.
Already up to date, so updating won't help.
Steps to reproduce the behavior
The text was updated successfully, but these errors were encountered: