For security and maintenance, prepare another windows partition, such as E. The default dock file will be installed on the system disk. The physical machine is in BIOS and the virtual machine is in virtual machine settings. Make sure that virtualization support for the CPU is turned on. You can increase the memory consumption of wsl through wsl settings. It is recommended to ensure that the machine memory is no less than 4 cores and 8G. By default, wsl uses half of the system memory and cpu. Install docker desktop step 0 preparation Windows terminal can enable multiple tabs (fast switching between multiple Linux command lines, windows command prompt, PowerShell and Azure CLI, etc.). Windows terminal can be installed through.
Step 7 install Windows terminal (optional) If you are installing in a vmware virtual machine, make sure that CPU virtualization for the virtual machine configuration is selected. This paper uses docker to run gitlab, and does not need a Linux as the basis. If you want to use Linux, this step is followed by installing the required Linux version from the. Open PowerShell and run the following command when installing a new Linux distribution to set WSL 2 as the default version: Step 5 - set WSL 2 as the default version Select Yes to approve this installation.)Īfter the installation is complete, proceed to the next step. Double click to run - you will be prompted to provide elevated permissions.
Run the update package downloaded in the previous step. Download the latest package: WSL2 Linux kernel update package for 圆4 computerī. Step 4 - download the Linux kernel update packageĪ. Restart the computer to complete the WSL installation and update to WSL 2. Computer needs Virtualization function To use this feature.ĭism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart Step 3 - enable the virtual machine featureīefore installing WSL 2, the virtual machine platform optional feature must be enabled. (or enter ver command at the windows command prompt). To check the Windows version and build number, select the windows key + R, then type "winver" and select "OK". For 圆4 systems: version 1903 or later, use build 18362 or later. To update to WSL 2, you need to run Windows 10. Step 2 - check the requirements for running WSL 2 Open and run PowerShell as administrator:ĭism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart You need to enable the Windows subsystem for Linux optional feature before you can install Linux distribution on Windows. Reference documents Step 1 - enable the Windows subsystem for Linux
Windows 10 Pro version 20H2 version 19042.631 So, I wrote a complete version, which is convenient for those who are not familiar with it. The installation steps of gitlab docker found on the Internet are relatively simple. Therefore, the simplest installation method on windows machine is to use docker. Gitlab ce does not provide windows installation package.