WSL2: nothing provides libdl.so.2()(64bit) needed by nvidia-container-toolkit

Hi, I’m trying to run Docker on Windows, and I need to first install the Nvidia Container Toolkit in order to use GPU Acceleration. However, I’m encountering the following error twice when I try to install the CTK through zypper on WSL2:

nothing provides libdl.so.2()(64bit) needed by nvidia-container-toolkit

I haven’t seen this issue anywhere online, and I don’t quite know where to start with this. What should I try?
Thanks!

Doesn’t the WSL2 distribution of Docker Desktop has everything the GPU requires?

https://www.docker.com/blog/wsl-2-gpu-support-for-docker-desktop-on-nvidia-gpus/

Or you mean you installed Docker in a WSL2 distro without Docker Desktop?

ensure you enable WSL and install a glibc-based distribution (such as Ubuntu or Debian). Ensure you have the latest kernel by selecting Check for updates in the Windows Update section of the Settings app.

Searhcing for the libdl.so I found this:

I’ve been having issues installing Docker for WSL2, so it’s actually running on Windows. I’m using WSL2 to get the Nvidia CTK, which I need for this program.

I don’t think that SO post relates to my issue. Thank you, though.

If Docker is running in a WSL distribution it is not Windows. It is Linux. Even if it is Docker Desktop, that uses WSL2 and has its own WSL distribution. I shared links for Docker Desktop and also for WSL2 without the Desktop so which one is not related to the issue?

What is Docker for WSL2? There are “Docker Desktop for Windows” and “Docker CE”