From a29d60f9a54e6134f8df0c9c345ecb601aeebf42 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Tue, 1 Sep 2020 11:21:49 -0400 Subject: [PATCH 1/2] Update wsl.md Trying to clarify for the user that they should run the `wsl -l -v` command on Windows, not within the Linux distro. --- docker-for-windows/wsl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-for-windows/wsl.md b/docker-for-windows/wsl.md index e751a0eb9c..cee23153fa 100644 --- a/docker-for-windows/wsl.md +++ b/docker-for-windows/wsl.md @@ -42,7 +42,7 @@ Ensure you have completed the steps described in the Prerequisites section **bef 5. Click **Apply & Restart**. 6. Ensure the distribution runs in WSL 2 mode. WSL can run distributions in both v1 or v2 mode. - To check the WSL mode, run + To check the WSL mode, run the following command in cmdexec or PowerShell `wsl -l -v` From b8a9d8cfa1443a37c84964633a060c68496da8cd Mon Sep 17 00:00:00 2001 From: Usha Mandya <47779042+usha-mandya@users.noreply.github.com> Date: Wed, 2 Sep 2020 14:06:30 +0100 Subject: [PATCH 2/2] Update the WSL commands Added .exe within the WSL commands to ensure the commands work in any WSL distro --- docker-for-windows/wsl.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-for-windows/wsl.md b/docker-for-windows/wsl.md index cee23153fa..78b6070ada 100644 --- a/docker-for-windows/wsl.md +++ b/docker-for-windows/wsl.md @@ -42,17 +42,17 @@ Ensure you have completed the steps described in the Prerequisites section **bef 5. Click **Apply & Restart**. 6. Ensure the distribution runs in WSL 2 mode. WSL can run distributions in both v1 or v2 mode. - To check the WSL mode, run the following command in cmdexec or PowerShell + To check the WSL mode, run: - `wsl -l -v` + `wsl.exe -l -v` To upgrade your existing Linux distro to v2, run: - `wsl --set-version (distro name) 2` + `wsl.exe --set-version (distro name) 2` To set v2 as the default version for future installations, run: - `wsl --set-default-version 2` + `wsl.exe --set-default-version 2` 7. When Docker Desktop restarts, go to **Settings** > **Resources** > **WSL Integration**.