When I wrote the Redis book and the Spring Cloud Alibaba book, I found that some distributed components are more suitable for installation in a Linux environment, and when building clusters such as Redis, a Linux environment is more necessary. The machine I use for daily code practice and book writing runs on Windows 10 Home Edition. In order to simulate the Linux environment, one solution is to install Docker. When I first started installing it, I found that it couldn't be installed. Later, I asked others for help and searched for some methods on the Internet, and finally I succeeded in installing it. I think this step was not very smooth and I solved several problems in the process. In this article, I will list the installation steps in detail and give methods to solve related problems for your reference. The first step is to create a new txt file and change the suffix to .cmd. The content is as follows. pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" del hyper-v.txt Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL Then run the above cmd file as an administrator. If prompted to restart, restart. Step 2 : Check if Hyper-V is checked. If not, check it. This step may also require restarting the computer. The third step is to open cmd as an administrator and run the command to modify the registry. The specific method is to find cmd.exe in the C:\Windows\System32 directory, right-click, and select Run as administrator. In the cmd command window, execute the following command to disguise the computer as win10 professional version by modifying the registry. REG ADD "HKEY_LOCAL_MACHINE\software\Microsoft\Windows NT\CurrentVersion" /v EditionId /TR Step 4. Download and install docker from the official website. After the installation is complete, restart as prompted. According to the instructions in many documents, the installation can be completed, but after the installation, I still encountered the following problems.
This means that the wsl2 version I am using is old and I need to update it manually. According to the documents I found, I went to Microsoft's official website to download the latest version of wsl2. The link address is this: https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi After downloading the update, there are also problems similar to the following:
However, I only deleted the Docker-related environment variables as shown in the figure below, and just restarted Docker without uninstalling and installing it. Later, the problem was solved. After installing docker, run the This is the end of this article about how to install docker on windows 10 home edition. For more information about installing docker on windows 10, please search 123WORDPRESS.COM's previous articles or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Vue implements fuzzy query-Mysql database data
>>: Solution to the problem of large font size on iPhone devices in wap pages
1. Commonjs Commonjs is a custom module in nodejs...
grammar background: linear-gradient(direction,col...
1. Preparation 1.1 Download the Python installati...
Table of contents Version Notes Create a project ...
Around version 0.6, privileged was introduced to ...
<br />For an article on a content page, if t...
what is it? GNU Parallel is a shell tool for exec...
Building an image is a very important process in ...
Installing Docker on CentOS requires the operatin...
I found a strange problem when deploying the proj...
Insert data into mysql database. Previously commo...
####Management of input and output in the system#...
Preface First, let's see how to identify a TC...
React is a JAVASCRIPT library for building user i...
This article shares the specific code for WeChat ...