Skip to content

Extremely slow on Windows 10 #1936

Closed
Closed
@rlwchang

Description

@rlwchang

Please, check https://docs.docker.com/docker-for-win/troubleshoot/.
Issues without logs and details cannot be debugged, and will be closed.

    • I have tried with the latest version of my channel (Stable or Edge)
    • I have submitted Diagnostics
    • I have included the Diagnostics ID in this Issue
    • Windows Version: Windows 10 Pro
    • Docker for Windows Version: 10.03.0-ce

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

  1. ... Download Docker for Windows
  2. ... Use it and cry

Activity

tonymet

tonymet commented on Apr 10, 2018

@tonymet

general advice for development

Here are directories to exclude

  • development project directories that contain .git repos or node_modules, etc
  • docker image directories
  • anything with thousdands of files

What services to configure exclusions on

Do this and you will notice Docker & WSL will be 100x faster

ghost

ghost commented on Apr 13, 2018

@ghost

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?

tonymet

tonymet commented on Apr 15, 2018

@tonymet

@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

laymain

laymain commented on Apr 18, 2018

@laymain

I have the same issue here, I've added my development folders to the Windows Defender exclusion list without any performance improvement.
I've launched procmon and found a relevant event:

Process Name Duration Operation Path Result Detail
docker.exe 67.8090678 CreateFile \\MY_DOMAIN\PIPE\samr BAD NETWORK PATH Desired Access: Generic Read/Write, Disposition: Open, Options: , Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a

Is that a Docker network issue?

77cc33

77cc33 commented on May 10, 2018

@77cc33

Try to disable windows defender at all, just for testing. You can use Windows Shutup 10 Tool to do this for sure.

darron1217

darron1217 commented on May 10, 2018

@darron1217

I always disable my vaccine softwares when I run docker.
But it's extremely slow even there's no program running on my desktop.

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

TheRealEdwardCullen

TheRealEdwardCullen commented on May 31, 2018

@TheRealEdwardCullen

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...

laymain

laymain commented on Jun 1, 2018

@laymain

I tried to:

  • Remove Docker
  • Remove every remaining Docker configuration files
  • Remove Hyper-V
  • Remove all remaining network cards linked to Docker/Hyper-V
  • Reinstall Hyper-V
  • Reinstall Docker

without any improvement...

I ended by formatting and reinstalling Windows, everything runs smoothly now.

rwrz

rwrz commented on Jun 5, 2018

@rwrz

I disabled Windows defender and it help a lot. But the network between containers seems slow... any ideas?

79 remaining items

billgeek

billgeek commented on Dec 12, 2019

@billgeek

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. (docker ps -a took around 4 minutes to respond) I tried everything: Restarting, shutdown and "cold boot", dns flush, nothing helped to improve the performance.

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 docker ps -a command returned near instantly. The moment a VPN connection is established, that command stops responding and takes ages to return anything.

In my particular case, it would seem that VPN and Windows Updates are somehow connected, most likely due to the Defender updates.

flindby

flindby commented on Feb 22, 2020

@flindby

For me, the problem disappears immediately when I just disconnect from my regular home WiFi.
I have tried everything with Windows Defender, but that has no effect on my machine.

mbamarante

mbamarante commented on Mar 4, 2020

@mbamarante

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!

  1. Disable Antivius / Add process exclusive on window defender
  2. Re install docker
  3. Remove ipv6 of card network windows
  4. Start container with disabled ipv6
  5. Setting xdebug with remote host local
  6. Turn on debug of VsCode

Thanks all Guys

Remove ipv6 of card network windows works for me.

Elio-Shyti

Elio-Shyti commented on Mar 30, 2020

@Elio-Shyti

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.
Coincidentally I changed from WiFi to LAN connection and at this moment it works again perfectly. I don't have any idea why is this happening but maybe it helps somebody to understand more.

ayhaninal

ayhaninal commented on Apr 5, 2020

@ayhaninal

This is exactly because of [x] Send usage statistics. Uncheck this and run faster.

silence48

silence48 commented on Apr 10, 2020

@silence48

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.

bkline

bkline commented on Apr 11, 2020

@bkline

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 Behat tests can't run at all, without hacking the scripts so they won't time out):

root@a50249cf7792:/var/www# time vendor/bin/blt tests:phpunit:run -vv
[Filesystem\FilesystemStack] mkdir ["/var/www/reports/phpunit"]
[Filesystem\FilesystemStack] touch ["/var/www/reports/phpunit/results.xml"]
[Testing\PHPUnit] Running PHPUnit  --log-junit /var/www/reports/phpunit/results.xml /var/www/docroot/modules/custom -v --configuration /var/www/phpunit.xml
[Testing\PHPUnit] Running /var/www/vendor/bin/phpunit --log-junit /var/www/reports/phpunit/results.xml /var/www/docroot/modules/custom -v --configuration /var/www/phpunit.xml in /var/www/docroot/modules/custom
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.2.24-0ubuntu0.18.04.3
Configuration: /var/www/phpunit.xml

..........................................................        58 / 58 (100%)

Time: 50.57 minutes, Memory: 36.25MB

OK (58 tests, 300 assertions)
[Testing\PHPUnit] Done in 50:34
[Testing\PHPUnit] Running PHPUnit  --log-junit /var/www/reports/phpunit/results.xml /var/www/docroot/profiles/custom/cgov_site -v --configuration /var/www/phpunit.xml
[Testing\PHPUnit] Running /var/www/vendor/bin/phpunit --log-junit /var/www/reports/phpunit/results.xml /var/www/docroot/profiles/custom/cgov_site -v --configuration /var/www/phpunit.xml in /var/www/docroot/profiles/custom/cgov_site
PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.2.24-0ubuntu0.18.04.3
Configuration: /var/www/phpunit.xml

....................                                              20 / 20 (100%)

Time: 14.36 hours, Memory: 10.00MB

OK (20 tests, 598 assertions)
[Testing\PHPUnit] Done in 14:21:58
15:12:34 total time elapsed.

real    912m34.451s
user    41m17.885s
sys     16m3.070s

randre70

randre70 commented on Apr 12, 2020

@randre70

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
Afterwards "docker version" responds immediately.

jakubkeller

jakubkeller commented on Apr 12, 2020

@jakubkeller
andiramuttakim

andiramuttakim commented on Apr 16, 2020

@andiramuttakim

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.

ads90

ads90 commented on Jun 12, 2020

@ads90

for me issue was when i have onedrive syncing at same folder stopping onedrive make it 100X faster

docker-robott

docker-robott commented on Jul 12, 2020

@docker-robott
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.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

locked and limited conversation to collaborators on Jul 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @redhead@sadeghhp@programadriano@laymain@tonymet

        Issue actions

          Extremely slow on Windows 10 · Issue #1936 · docker/for-win