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

[v1.14.0-rc.1] No /etc/nvidia-container-runtime/config.toml #78

Closed
nie3e opened this issue Jul 7, 2023 · 2 comments
Closed

[v1.14.0-rc.1] No /etc/nvidia-container-runtime/config.toml #78

nie3e opened this issue Jul 7, 2023 · 2 comments

Comments

@nie3e
Copy link

nie3e commented Jul 7, 2023

ubuntu 22.04
After docker and nvidia drivers + cuda installation I am running:

distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
      && curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
      && curl -s -L https://nvidia.github.io/libnvidia-container/experimental/$distribution/libnvidia-container.list | \
         sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
         sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
		 
sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker

It installs v1.14.0-rc.1 and there is no config file /etc/nvidia-container-runtime/config.toml - becase of this i can't use swarm-resource.
v1.13.1 works fine.

@elezar
Copy link
Member

elezar commented Jul 10, 2023

@nie3e yes, this is a known issue. We provide a nvidia-ctk config default command to generate a default config -- instead of managing a per-distribution config in the packages themselves. This opens up the option to use the same packages across more distributions.

We have a fix in progress to generate the config as a post-install scriplet which should ensure that the file actually exists and this will be included in the rc.2 that we are looking to release later this week.

Note that the config file is still read and the format hasn't changed, so you should be able to manually set up the config as before. Runnning mkdir -p /etc/nvidia-container-runtime && nvidia-ctk config default > /etc/nvidia-container-runtime/config.toml should create the config file with default values for you to edits.

@nie3e
Copy link
Author

nie3e commented Jul 10, 2023

@elezar okay thanks for answer, gonna use this command.

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

2 participants