我看到了类似的步骤,但它们不同,因为我使用的是 WSL2 和 docker 以及 GPU 感知 docker。
我有 Windows 10 版本 2004(内部版本 20161.1000) 我已经安装了 WSL 2 并且在我的 Windows 系统上运行了 Docker Desktop 2.3.0.3。我也在 WSL 2 中安装了 Ubuntu 18.04 LTS。我已经安装了 NVIDIA 驱动程序

linux 版本是 4.19.121-microsoft-standard。我的笔记本电脑 GPU QUADRO M2000M 的 NVIDIA 驱动程序版本是 455.41。实际上,我遵循了https://ubuntu.com/blog/getting-started-with-cuda-on-ubuntu-on-wsl-2 中描述的所有步骤,直到我必须在其中运行“sudo service docker stop”的步骤一个 Ubuntu 终端。
这会导致消息 docker: unrecognized service。
我必须在 WINdows 10 中重新启动 docker 桌面才能运行守护进程。
然后我在 Ubuntu 终端中进行测试: docker run hello-world ==> 这运行良好 还有命令 docker run -it ubuntu bash ==> 在 Ubuntu 终端 os WSL 2 …