Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notify user to install nvidia-container-runtime #18

Open
lwshang opened this issue Mar 25, 2020 · 3 comments
Open

Notify user to install nvidia-container-runtime #18

lwshang opened this issue Mar 25, 2020 · 3 comments

Comments

@lwshang
Copy link

lwshang commented Mar 25, 2020

The package nvidia-container-runtime is necessary to run docker with Nvidia GPU. I followed the instruction in README and tried tensorman run --gpu bash. It failed and showed following message:

could not select device driver "" with capabilities: [[gpu]]

I searched this error message and the solution was just install the dependency nvidia-container-runtime.

I believe it will be better to give some useful information for a user like me who try to run docker with GPU for the first time.

Ideally, if --gpu is set and nvidia-container-runtime has not been installed, tensorman may friendly tell the user to install the dependent packages by directly showing the apt-get install command.

@B3njimin
Copy link

B3njimin commented Oct 5, 2022

I am having a similar issue only if I try to install the nvidia-container-runtime I get this message

Package nvidia-container-runtime is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: nvidia-docker2 nvidia-container-toolkit nvidia-container-toolkit-base

@mmstick
Copy link
Member

mmstick commented Oct 5, 2022

You should install nvidia-docker2

@B3njimin
Copy link

B3njimin commented Oct 5, 2022

thank you I also had to run sudo systemctl restart docker in order for it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants