'nvidia-smi executable file not found on docker in WSL
I set up CUDA on WSL2 Ubuntu 20.04 and am able to successfully run commands like:
docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
and
docker run -it --gpus all -p 8888:8888 tensorflow/tensorflow:latest-gpu-py3-jupyter
but
docker run --gpus all --rm nvidia/cuda:10.0-runtime nvidia-smi
gives me this error and I do not have a good mental model of how docker works:
docker: Error response from daemon: OCI runtime create failed: container_linux.go:367: starting container process caused: exec: "nvidia-smi": executable file not found in $PATH: unknown.
This command works outside of docker.
nvidia-smi
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
