Windows Pro Docker Desktop installation method Windows Subsystem Linux 2.0

Official address: https://docs.docker.com/docker-for-windows/install/

 

Confirm WSL2.0 version:

WSL installation method, please refer to https://blog.csdn.net/li4692625/article/details/108424771

windows power shell run wsl -l -v, you can see the version number version is generally 2.0

How to switch WSL 1.0 to 2.0:

https://docs.microsoft.com/en-us/windows/wsl/install-win10

下载kernel update package:https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi

Switch wsl to the default version after installation:

wsl --set-default-version 2

View all wsl versions:

wsl --list --verbose

Switch an instance to wsl 2: 

wsl --set-version <Distro> 2

Windows needs to enable Hyper-V and Containers Windows features

Opening method:

control panel  >> program >> turn windows features on or off

Open the control panel, program to open or close the windows feature, check Hyper-V Containers

Method 2:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All

DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

Then restart

Note that some functions need to be turned on in the BIOS, the details are google or Baidu

For the windows system installed by Bootcamp, open the task manager and check if Virtualization is disabled in the lower right corner of the performance

You need to start from the Mac OS and then restart, enter windows and then open the task manager to check, it's all right!

Then install docker desktop and start successfully!

Docker instructions

docker exec -it nrp bash
#进入docker bash 模式
#查看完整路径
exit
#退出 bash 模式

#从docker中拷贝出文件夹到home文件夹
docker cp xxp:/home/bbpnrsoa/xx/src/Models/mouse_v1_model ~

 

 

Guess you like

Origin blog.csdn.net/li4692625/article/details/112165715