WSL2 Ubuntu 20.04.3 LTSkernel image: 5.10.60.1-microsoft-standard-WSL2
I am trying to install CUDA according to the instructions here: https://ubuntu.com/blog/getting-started-with-cuda-on-ubuntu-on-wsl-2
And I am getting a docker: unrecognized service message when running command sudo service docker stop. I did follow the instructions up to the point where this command is in the tutorial, and the results of running sudo apt update && sudo apt install -y nvidia-docker2 seem successful. I've also tried to check if the docker service is available at all using service --status-all and didn't see it in the results.
Please help me figure out how to properly install CUDA, I am trying to set up opencv with GPU support for a project I am working on in image processing.
Here are the outputs from the mentioned commands I ran:
service --status-allOutput:
[ - ] apparmor [ ? ] apport [ - ] atd [ - ] console-setup.sh [ - ] cron [ ? ] cryptdisks [ ? ] cryptdisks-early [ - ] dbus [ ? ] hwclock.sh [ + ] irqbalance [ - ] iscsid [ - ] keyboard-setup.sh [ ? ] kmod [ - ] lvm2 [ - ] lvm2-lvmpolld [ - ] multipath-tools [ + ] open-iscsi [ - ] open-vm-tools [ ? ] plymouth [ ? ] plymouth-log [ - ] procps [ - ] rsync [ - ] rsyslog [ - ] screen-cleanup [ - ] ssh [ ? ] ubuntu-fan [ + ] udev [ - ] ufw [ - ] unattended-upgrades [ - ] uuidd [ - ] x11-commonCommand:
sudo apt update && sudo apt install -y nvidia-docker2Output:
Hit:1 http://archive.ubuntu.com/ubuntu focal InReleaseHit:2 http://archive.ubuntu.com/ubuntu focal-updates InReleaseHit:3 https://nvidia.github.io/libnvidia-container/experimental/ubuntu18.04/amd64 InReleaseHit:4 http://archive.ubuntu.com/ubuntu focal-backports InReleaseHit:5 https://nvidia.github.io/libnvidia-container/stable/ubuntu18.04/amd64 InReleaseHit:6 http://security.ubuntu.com/ubuntu focal-security InReleaseHit:7 https://nvidia.github.io/nvidia-container-runtime/stable/ubuntu18.04/amd64 InReleaseHit:8 https://nvidia.github.io/nvidia-docker/ubuntu18.04/amd64 InReleaseReading package lists... DoneBuilding dependency treeReading state information... DoneAll packages are up to date.Reading package lists... DoneBuilding dependency treeReading state information... Donenvidia-docker2 is already the newest version (2.8.0-1).0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.