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 login
and docker pull
are abysmally slow (to start) in WSL 2
#12995
Comments
Please, let me know if you have any specific data requests regarding this. I'll be happy to help to the best of my ability. Looking at #10247 it seems a fair amount of others are also encountering this. |
I did some more pinpointing:
|
I think the fix for this is docker/docker-credential-helpers#208, which is in the v0.7.0 release of the credential helpers, but may be used both by the |
I am also experiencing this slowness - EDIT: |
When running In either case, I see that the fix was merged in the Docker Desktop repository (private, so can't link to the pull request), so should be in the next release of Docker Desktop. |
I still seem to be having this issue with 4.13 |
Same. I mentioned this in #10247:
|
Yeah, I think this is related, but what I am seeing is Removing This is with Docker Desktop 4.13.0 (89412), Windows 11 Enterprise Version 10.0.22621 Build 22621, in a Ubuntu 22.04 WSL instance. |
I had the same issue with Docker 4.14 and WSL2 Ubuntu 20.04.5. It appeared right after installing KB5019959 & KB5020030 & updating WSL. The only thing that worked for me was removing |
Update: The workaround from #10247 (comment) does in fact work for me. If you face issues with it, you're probably not doing it correctly: The symlink needs to be created in the Also, beware that the file names |
There hasn't been any activity on this issue for a long time. Prevent issues from auto-closing with a /lifecycle stale |
Shall we close this in favour of the other issue #10247 ? |
EDIT: |
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. /lifecycle locked |
Actual behavior
In WSL2 (Ubuntu), certain Docker commands such as
docker login
anddocker pull
take a very long time before actually starting. The commands seem to hang for a long while before getting to their main business.docker login
hangs between 5 and 7 minutes to provide the username prompt,docker pull
hangs between 5 and 7 minutes before logging download of the first layerPlease note the above times are times it takes before the commands actually start doing what they're going to do. Once
docker pull
starts downloading layers, it performs it's remaining actions quickly as one would expect.In the native Windows CLI the same commands perform in seconds, as expected.
The issue always manifests. What I've tried to rule out:
dig docker.io
completes instantaniuslyExpected behavior
Docker CLI commands run in a timely manner.
Information
"C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
incorrectly reports that the account is not a member ofdocker-users
. It is.docker
commands work as expected under Windows.As others have pointed out in #10247 (comment), removing the
"credsStore": "desktop.exe"
fixes the performance but that hardly seems the ideal solution.I've tried the steps described in #10247 (comment) but those didn't solve the issue for me.
Output of
& "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
Steps to reproduce the behavior
Exact setup steps unknown.
The text was updated successfully, but these errors were encountered: