Article Directory
Environmental preparation
- Windows 10 64-bit: Professional Edition, Enterprise Edition or Education Edition (build 16299 or higher).
For Windows 10 Home, see Install Docker Desktop on Windows Home .
-
Hyper-V and Containers Windows must be enabled.
-
To successfully run Client Hyper-V on Windows 10, the following hardware prerequisites need to be met:
- 64-bit processor with second level address translation (SLAT)
- 4GB system memory
- BIOS-level hardware virtualization support must be enabled in the BIOS settings. Generally, virtualization is enabled, so I won’t introduce it in detail.
For more information, see Virtualization .
Download and install
- The official download address , I chose the stable version, and the installation option is ok by default.
- After startup, it will appear in the lower right corner of the desktop. After the mouse is placed on it, it will display Docker is running, which means the startup is successful.
Possible errors
- WSL 2 installation is incomplete.
-
First confirm that the Windows subsystem for Linux is turned on
-
Secondly download and update WSL
-
Failed to set version to docker-desktop: exit code: -1
-
Solution 1: Administrator permissions are executed in cmd
netsh winsock reset
Analysis of the causes and solutions: the proxy software conflicts with the sock port of wsl2, use netsh winsock reset to reset and repair.
- Solution 2: Download NoLsp.exe first , and then execute it as an administrator
NoLsp.exe C:\windows\system32\wsl.exe
Proxifer developers explained as follows:
If Winsock LSP DLL is loaded into its process, wsl.exe will display this error. The simplest solution is to use WSCSetApplicationCategory WinAPI call to wsl.exe to prevent this. In the background, the call creates an entry for wsl.exe in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WinSock2\Parameters\AppId_Catalog.
This will tell Windows not to load the LSP DLL into the wsl.exe process
- 'docker-machine' is not an internal or external command, nor is it a runnable program.
Go to docker-machine on GitHub and download the required version. You can also use git bash to enter the following command
$ base=https://github.com/docker/machine/releases/download/v0.16.0 &&
mkdir -p "$HOME/bin" &&
curl -L $base/docker-machine-Windows-x86_64.exe > "$HOME/bin/docker-machine.exe" &&
chmod +x "$HOME/bin/docker-machine.exe"