Windows installs dockers desktop and vmwame and docker desktop coexistence solution
1 Introduction to respective environmental requirements
1) docker desktop requires win10 to start virtualization
Installation Notes: Remember not to install this software directly: docker desktop has some other dependencies on this software.
If it is purely a development test: it is recommended that you upgrade windows to the preview version (see the second requirement of vmwame for details), and then operate;
if you want Stable computer (it is not recommended to upgrade)
Note: Turn on virtualization: Mandatory operation: Deterministic dependency: Specific steps Baidu: Turn on hyper-v
**1) Very critical: **Start pwoershell as an administrator: Run the command: choco install docker-desktop
Reference: https://chocolatey.org/packages/docker-desktop, pwoershell will solve the installation of related dependencies for you;
The whole process takes about 1 hour: be patient
2) Optional: Install wsl2
Install Windows Subsystem for Linux (WSL) on Windows 10 | Microsoft Docs
https://docs.microsoft.com/zh-cn/windows/wsl/install
PowerShell Run: wsl - -install
- Optional configuration after installation:
- Enable the mirror warehouse function: (recommended to enable, push the image to the local use) Expose daemon on tcp://localhost:2375 without TLS
2) Use WSL 2 as the underlying dependency of docekr (not recommended to enable, computer memory 16G+ can be considered): Use the WSL 2 based engine
2) There are 3 requirements for the computer to start virtualization with vmwame
2.1 vmware requires 15.5+ (I installed 16, if there is an old version of vmware, directly overwrite the installation)
there is an option to be compatible with virtualization during installation: you must check the 2 options in the figure below
and then change the compatibility of the virtual machine to 16: as follows Figure operation
2.1) The kernel version of win10 is required to be 10.0.19+.
Currently (2021-03-28) the stable version of win10 has not reached this version. Users need to open the preview plan
to enable this function. A windows account needs to be jailbroken and registered, so no introduction For
the opening steps, please refer to: Baidu experience:
https://jingyan.baidu.com/article/454316abdc89f7f7a7c03ac9.html
Cut that: the system needs to be updated if the opening is successful: click windows update (as shown below)
After the update is completed: run ver to view the windows kernel Version 10.0.19+ and above
2.2 It is required to enable the virtual language on this machine: the specific operation steps Baidu: to enable hyper-v
2.3, the generation number of the CPU is required to be greater than 4 generations, and it is estimated that only antique machines will not work (the CPUs of the computers I bought in 2013 are all 6 generations)
After the environment is configured, it can be tested under windows
cmd run: docker info
cmd run: docker run -d -p 80:80 nginx