It is a memo of the procedure to install and start Docker Desktop in the Windows 10 environment.
Reference information Introducing WSL2 and updating to Windows 10 version 20H2 https://blog.tagamy.com/archives/223
Reference information Documentation for Windows Subsystem for Linux https://docs.microsoft.com/ja-jp/windows/wsl/
Reference information I tried setting up Windows Subsystem for Linux 2 (WSL 2) https://dev.classmethod.jp/articles/how-to-setup-wsl2/
Open Towershell as administrator and run the following command
PS C:\windows\system32> dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
Deployment image services and management tools
version: 10.0.19041.572
Image version: 10.0.19042.685
The function is enabled
[==========================100.0%==========================]
The operation completed successfully.
PS C:\windows\system32> dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Deployment image services and management tools
version: 10.0.19041.572
Image version: 10.0.19042.685
The function is enabled
[==========================100.0%==========================]
The operation completed successfully.
Restart your PC at this timing
http://aka.ms/wsl2kernelmsix64
Go to and double-click the download file (wsl_update_x64.msi) to run it
PS C:\windows\system32> wsl --set-default-version 2
For the main differences from WSL 2, https://aka.ms/See wsl2
Open the Microsoft Store and select your preferred Linux distribution.
Microsoft Store https://aka.ms/wslstore
Select Ubuntu 20.04 LTS https://www.microsoft.com/store/apps/9n6svws3rx71
Start Ubuntu and set user and password
Reference information https://docs.microsoft.com/ja-jp/windows/wsl/user-support
Perform package update
sudo apt update && sudo apt upgrade
PS C:\windows\system32> wsl --list --verbose
NAME STATE VERSION
* Ubuntu Running 2
https://hub.docker.com/editions/community/docker-ce-desktop-windows
Click Get Docker For Windows Run and install the download file
"Enable WSL 2 Windows Features" is checked on the installer screen Confirm that
By logging off and logging in to Windows Docker Desktop For Windows is launched. Has completed.
Reference information Use WSL2 as a backend for Docker Desktop for Windows https://dev.classmethod.jp/articles/docker-desktop-for-windows-on-wsl2/
Recommended Posts