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:

https://blog.csdn.net/xianxi9883/article/details/107358445/

win10 on container virtualization:

https://blog.csdn.net/leenhem/article/details/105359112

http://www.xitongcheng.com/jiaocheng/win10_article_53803.html

introduces wsl2 installation driver and nvidia-docker method:

https://zhuanlan.zhihu.com/p/149517344

here are some of the problems I ran into:

is

curl https://get.docker.com | sh

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

solved in minutes

followed by:

curl -s -L https://nvidia.github.io/nvidia-docker/gpgkey | sudo apt-key add -

prompt me GPG: no valid OpenPGP data found.

then I start from the browser open https://nvidia.github.io/nvidia-docker/gpgkey, download this file to the ubuntu folder

sudo apt-key add gpgkey

solution

and then

curl -s -L https://nvidia.github.io/nvidia-docker/$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 https://nvidia.github.io/libnvidia-container/stable/ubuntu16.04/$(ARCH) /
#deb https://nvidia.github.io/libnvidia-container/experimental/ubuntu16.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu16.04/$(ARCH) /
#deb https://nvidia.github.io/nvidia-container-runtime/experimental/ubuntu16.04/$(ARCH) /
deb https://nvidia.github.io/nvidia-docker/ubuntu16.04/$(ARCH) /

, that’s what it is. If you want to open it yourself, you can use

https://nvidia.github.io/nvidia-docker/$distribution/nvidia-docker.list, where $distribution changing its own system name

and finally, success.

Read More: