kasmtech / workspaces-images

Other
733 stars 240 forks source link

docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]]. #107

Open SameerShanbhogue opened 4 months ago

SameerShanbhogue commented 4 months ago

Hi

I am trying to use GPU inside - dockerfile-kasm-ubuntu-jammy-dind - image. using kasm workspace. GPU is enable in kasm workspace config..

nvidia-smi is working below are details

image

But when i try to test GPU following error occurs

default:~/Desktop$ docker run -it --rm --gpus '"device=0,2"' tensorflow/tensorflow:latest-gpu nvidia-smi docker: Error response from daemon: could not select device driver "" with capabilities: [[gpu]].

glxheads

image

j-travis commented 4 months ago

HI, Try adding the following to your Docker Run Config in the workspace configuration

{
"environment": {
"NVIDIA_DRIVER_CAPABILITIES": "all"
}
}
SameerShanbhogue commented 4 months ago

Hi  Already added during the configuration of workspace. The error still persist... Best regards Sameer

Yahoo Mail: Search, organise, conquer

On Fri, 12 Jul 2024 at 18:08, @.***> wrote:

HI, Try adding the following to your Docker Run Config in the workspace configuration { "environment": { "NVIDIA_DRIVER_CAPABILITIES": "all" } }

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>