-
Notifications
You must be signed in to change notification settings - Fork 282
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-desktop doesn't work good with WSL2 systemd #13105
Comments
I also use WSL2 and I had this mount shared volume problem with kind: docker: But I didn't find docker service at WSL systemd. So i found this solution that suggest to set My question is: Docker Desktop in Windows 11 use WSL2 systemd? |
@giupb 's comment inspire me. that my 3 error dialogs should be 3 connections to my each WSL instances. -- my default Arch, docker-desktop and docker-desktop-data. So is docker desktop in windows try to connect something to each instances and trigger wslg connection error when systemd enabled for any instances? |
There hasn't been any activity on this issue for a long time. Prevent issues from auto-closing with a /lifecycle stale |
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
when wsl2 enable the systemd in
/etc/wsl.conf
, the docker-desktop start with 2 or 3 error message (detailed info here, and the docker login in wsl doesn't store the login credentials into docker-desktop (login success but cannot pull/push to private images). while, remove the"credsStore": "desktop.exe"
line in.docker/config.json
in wsl makes login work good. also, disable the systems in/etc/wsl.conf
make the error dialog gone and login works good.Expected behavior
I hope docker-desktop can work together with wsl-systemd
Information
I believe the problem comes with wsl2-systemd, which enabled in my PC with win11 22H2
Output of
& "C:\Program Files\Docker\Docker\resources\com.docker.diagnose.exe" check
diagnose.log
Steps to reproduce the behavior
I don't really know if the problem can be reproduce, but you can try
enable
![image](https://user-images.githubusercontent.com/11417632/204686499-acee386e-1d73-499e-96ea-a2cfe26128a2.png)
systemd=true
in/etc/wsl.conf
, like this:open wsl first, then open docker-desktop. the error dialog may appear.
The text was updated successfully, but these errors were encountered: