Skip to content
This repository has been archived by the owner on Jan 22, 2024. It is now read-only.

Can't run an nvidia cuda image without local drivers #1712

Closed
oo92 opened this issue Dec 3, 2022 · 2 comments
Closed

Can't run an nvidia cuda image without local drivers #1712

oo92 opened this issue Dec 3, 2022 · 2 comments

Comments

@oo92
Copy link

oo92 commented Dec 3, 2022

Hi.

I pull this image: https://hub.docker.com/layers/nvidia/cuda/11.8.0-devel-ubuntu22.04/images/sha256-0c4830108130fe92fa3e9ba8a9a813bf1264e2cddd1902b2c30750aada5ede38?context=explore

like this: docker pull nvidia/cuda:11.8.0-devel-ubuntu22.04

After the successful download, I am trying to run the image like this: docker run nvidia/cuda:11.8.0-devel-ubuntu22.04

But it is giving me the following error:

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: unable to retrieve OCI runtime error (open /run/containerd/io.containerd.runtime.v2.task/moby/305e31cc5a8870eba58fd1433edd6dffca4b66c86f2d00997a1e847abbad76f2/log.json: no such file or directory): fork/exec /usr/bin/nvidia-container-runtime: no such file or directory: unknown.
ERRO[0001] error waiting for container: context canceled 

Now, I don't have nvidia drivers or nvidia container toolkit installed on this VM and I see that to be the reason why. However, when I do install the drivers with sudo ubuntu-drivers autoinstall and sudo apt-get install nvidia-container-toolki, I get version mismatch.

Where am I going wrong?

@matifali
Copy link

The drivers should be installed for the do docker images to work. Its a pre_requisite

@elezar
Copy link
Member

elezar commented Oct 30, 2023

As @matifali the drivers are a prerequisite for containers to have access to GPUs.

@elezar elezar closed this as completed Oct 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants