When I first started learning Docker, I was a novice (don’t spray the old ones), and installed it step by step according to the steps of the official docker hub. Because I am Windows, my computer has a VMware virtual machine, at the beginning, the following problems will occur when starting
According to the official problem-solving document here, refer to https://docs.docker.com/desktop/faqs/ , the solution is to enable the VM virtual machine and Hyper-y function in the Windows function (remember to restart), but after enabling it, you will found a new problem
Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization
The prompt here is that the virtualization service in the BIOS is not enabled, let me open the task manager to see
It can be clearly seen here that it is turned on, so our simplest method, here comes the point
The easiest one is in powershell (administrator authority win+x)
bcdedit /set hypervisorlaunchtype off This is off, and the VM can be used
bcdedit /set hypervisorlaunchtype auto This is restarted, and docker can be used, but the biggest trouble is every time You have to restart, other services don't care
It’s the perfect solution here, it’s the first time for a newcomer to write an article, thank you for your support!