title: CUDA Version mismatch in Docker with WSL2 backend
body: <p>I am trying to use docker (Docker Desktop for Windows 10 Pro) with the WSL2 Backend (<code>WINDOWS SUBSHELL LINUX (WSL) (Ubuntu 20.04.4 LTS)</code>).</p>
  <p>That part seems to be working fine, except I would like to pass my GPU (<code>Nvidia RTX A5000</code>) through to my docker container.</p>
  <p>Before I even get that far, I am still trying to set things up. <a href="https://askubuntu.com/questions/1077061/how-do-i-install-nvidia-and-cuda-drivers-into-ubuntu" title="https://askubuntu.com/questions/1077061/how-do-i-install-nvidia-and-cuda-drivers-into-ubuntu">I found a very good tutorial</a> aimed at 18.04, but found all the steps are the same for 20.04, just with some version numbers bumpede.</p>
  <p>At the end, I can see that my Cuda versions do not match. You can see that here, <img src="https://i.imgur.com/wxRVH7V.png" alt="in this image" title="https://i.imgur.com/wxRVH7V.png" />.</p>
  <p>The real issue is when I try to run the test command <a href="https://docs.docker.com/desktop/windows/wsl/#gpu-support" rel="nofollow noreferrer" title="https://docs.docker.com/desktop/windows/wsl/#gpu-support">as shown on the docker website</a>:</p>
  <pre class="lang-sh prettyprint-override"><code> docker run --rm -it --gpus=all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
  </code></pre>
  <p>I get this error:</p>
  <pre class="lang-sh prettyprint-override"><code> --&gt; docker run --rm -it --gpus=all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
  docker: Error response from daemon: OCI runtime create failed: container_linux.go:380:
  starting container process caused: process_linux.go:545: container init caused: Running
  hook #0:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli:
  requirement error: unsatisfied condition: cuda&gt;=11.6, please update your driver to a
  newer version, or use an earlier cuda container: unknown.
  </code></pre>
  <p>... and I just don't know what to do, or how I can fix this.</p>
  <p>Can someone explain how to get the GPU to pass through to a docker container successfully.</p>