Until Docker Desktop is installed and started (Windows10)

It is a memo of the procedure to install and start Docker Desktop in the Windows 10 environment.

1. Upgrade from Windows Update to Windows 10 20H2

Reference information Introducing WSL2 and updating to Windows 10 version 20H2 https://blog.tagamy.com/archives/223

2. Introduction of WSL2

Reference information Documentation for Windows Subsystem for Linux https://docs.microsoft.com/ja-jp/windows/wsl/

2-1. Enable the Windows subsystem for Linux

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.

2-2. Enable the virtual machine function

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

2-3. Download the Linux kernel update package

http://aka.ms/wsl2kernelmsix64

Go to and double-click the download file (wsl_update_x64.msi) to run it

2-4. Set WSL 2 as the default version

PS C:\windows\system32> wsl --set-default-version 2
For the main differences from WSL 2, https://aka.ms/See wsl2

2-5. Install the Linux distribution

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

2-6. Set up a new distribution

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

3. Confirmation of WSL2

PS C:\windows\system32> wsl --list --verbose
  NAME      STATE           VERSION
* Ubuntu    Running         2

4. Docker Desktop For Windows installation

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

Until Docker Desktop is installed and started (Windows10)
Summary of Docker understanding by beginners ④ ~ Until EC2 instance is started and docker is installed ~
I installed Docker on EC2 and started it
Until you put Ubuntu 20 on Windows 10 Home and WSL2 and run Docker
Introducing Docker Desktop for Windows on WSL2
Installing Docker Desktop on Windows 10 Home was easy and easy (as of December 2020)
Docker Desktop for Windows 2.4.0.0 (48506) Startup error after update
Operate Docker Desktop for Windows on Linux (WSL)
What is Docker?
What is Docker
What is Docker
Easily build Redmine on Windows using WSL2 and Docker
I tried using Docker Desktop for Windows on Windows 10 Home
I installed CentOS 8 on Windows 10 using VirtualBox and Vagrant
Comfortable Docker environment created with WSL2 CentOS7 and Docker Desktop