Some problems in installing wsl2 and NVIDIA docker in win10

recently dual system collapsed, so choose wsl2, save trouble in the future, the first is the installation method, here posted my reference to some posts and introduction:

win10 installation method of wsl2 and docker-ce:

win10 on container virtualization:

introduces wsl2 installation driver and nvidia-docker method:

here are some of the problems I ran into:


curl | sh

speed is very slow, tried two days all can’t, finally changed a unicom network…

solved in minutes

followed by:

curl -s -L | sudo apt-key add -

prompt me GPG: no valid OpenPGP data found.

then I start from the browser open, download this file to the ubuntu folder

sudo apt-key add gpgkey


and then

curl -s -L$distribution/nvidia-docker.list | sudo tee /etc/apt/sources.list.d/nvidia-docker.list

because I couldn’t find nvidia-docker in the last update of the whole process, so I checked the nvidia-docker list and found nothing, so I opened the previous link separately, took the data and wrote it in by myself.

deb$(ARCH) /
#deb$(ARCH) /
deb$(ARCH) /
#deb$(ARCH) /
deb$(ARCH) /

, that’s what it is. If you want to open it yourself, you can use$distribution/nvidia-docker.list, where $distribution changing its own system name

and finally, success.

Read More: