for-win icon indicating copy to clipboard operation
for-win copied to clipboard

Fail to integrate WSL2 in docker desktop version 4.5

Open felizbuild opened this issue 4 years ago • 9 comments

Hi all, There are 4 problems in version 4.5 while it works fine in 4.4.4.

  1. The docker cannot start until I use the command "C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon

  2. even started docker engine by "C:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon, under the general settings:

    "Use the WSL 2 based engine (Windows Home can only run the WSL 2 backend)" is greyed out without tick (However, it is ticked in 4.4.4)

  3. Under resources settings, only proxy is shown, not WSL integration is present.

  4. docker ps command in WSL2 should error like cannot find socket

Info:

  • Windows Version: 11 version 21H2 (OS Build 22000.434) upgraded from win10 Home
  • Docker Desktop Version: 4.5
  • distribution: Unbuntu(18.04) LTS / Unbuntu(20.04) [both are tried]
  • backend: WSL2 (Hyper-V is not available on windows Home)

felizbuild avatar Feb 11 '22 09:02 felizbuild

I am having same exact problems with Docker 4.5.0(74594). Windows 10 build 19044 Ubunutu 20.04 LTS

mccaa25 avatar Feb 11 '22 15:02 mccaa25

I went to release notes for Docker Desktop for Windows and downloaded 4.4.2, uninstalled 4.5.0 and installed 4.4.2 as administrator (not sure if this was necessary), and now it works fine. Spent 6 hours trying to get 4.5.0 to work. Clearly there is a bug in 4.5.0!

mccaa25 avatar Feb 11 '22 16:02 mccaa25

** one point to note though, when I run 4.4.2 it does say there is an update to 4.4.4 so it might be worth grabbing this one if you want to roll back to an older one. I haven't tried updating to this but I think the problem occurs with 4.5, so 4.4.4 might be safe. 4.4.2 definitely works for me.

mccaa25 avatar Feb 11 '22 16:02 mccaa25

**Ok well, it "tricked" me into downloading 4.5.0 because it said it was going to update to 4.4.4, However this time, 4.5.0 worked immediately. The WSL integration box is grayed out but this time it is checked! Before it was unchecked.

mccaa25 avatar Feb 11 '22 17:02 mccaa25

I am having same exact problems with Docker 4.5.0(74594). Windows 10 build 19044 Ubunutu 20.04 LTS

Same here, now about to try out Docker 4.4.2

code-grey avatar Feb 14 '22 05:02 code-grey

** one point to note though, when I run 4.4.2 it does say there is an update to 4.4.4 so it might be worth grabbing this one if you want to roll back to an older one. I haven't tried updating to this but I think the problem occurs with 4.5, so 4.4.4 might be safe. 4.4.2 definitely works for me.

4.4.4 didn't work for me though, like i downloaded 4.4.4 and that very day 4.5.0 update rolled out

code-grey avatar Feb 14 '22 05:02 code-grey

You could try 4.4.2. I downloaded this and then updated to 4.5 through the docker desktop dashboard and it still works! Or (and maybe an easier solution)... In another issue thread a solution was posted that seems to work: Just go to the config file at C:\Users\AppData\Roaming\Docker\settings.json, and set "wslEngineEnabled": true that will fix this issue for v4.5 :)

On Mon, Feb 14, 2022, 12:10 AM code-grey @.***> wrote:

I am having same exact problems with Docker 4.5.0(74594). Windows 10 build 19044 Ubunutu 20.04 LTS

Same here, now about to try out Docker 4.4.2

— Reply to this email directly, view it on GitHub https://github.com/docker/for-win/issues/12544#issuecomment-1038649326, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVTNM3F6OCVKP6MQ7QSLSG3U3CFCZANCNFSM5ODTP67Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you commented.Message ID: @.***>

mccaa25 avatar Feb 14 '22 14:02 mccaa25

Hi, thanks for reporting, and sorry about the inconvenience, I’ll close this issue in favor of #12545 which has a temporary workaround until we release Desktop 4.5.1

mat007 avatar Feb 14 '22 14:02 mat007

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

docker-robott avatar Mar 16 '22 03:03 docker-robott