sunnyyang/nvcontainer-updater

Project ID: 205832

Description

What is this?

A simple helper package that automatically regenerates the NVIDIA CDI specification (/etc/cdi/nvidia.yaml) after an NVIDIA driver update on Fedora, RHEL, and their derivatives.

The Problem It Solves

When you update your NVIDIA drivers via dnf, the existing CDI specification file used by container runtimes (like Docker or Podman) can become outdated. This can lead to errors when trying to use GPUs inside containers (e.g., docker run --gpus all ...). You would normally have to manually run sudo nvidia-ctk cdi generate ... after each driver update.

How It Works

This is a tiny, file-less package that installs an RPM trigger. This trigger instructs dnf to automatically run the nvidia-ctk cdi generate command for you immediately after any NVIDIA driver package (akmod-nvidia, nvidia-driver-libs, etc.) is updated.

Set it and forget it. Your containerized GPU workloads will just keep working across driver updates.


Installation Instructions

Prerequisites

You must have already installed the NVIDIA drivers and the nvidia-container-toolkit on your system. This package only automates a step; it does not install the drivers for you.

Installation

  1. Enable this COPR repository:

    sudo dnf copr enable sunnyyang/nvcontainer-updater
  2. Install the package:

    sudo dnf install nvidia-cdi-trigger

That's it! The trigger is now active. The next time you run sudo dnf upgrade and an NVIDIA driver is updated, the CDI file will be regenerated automatically. No reboot is required for the change to take effect.

Active Releases

The following unofficial repositories are provided as-is by owner of this project. Contact the owner directly for bugs or issues (IE: not bugzilla).

Release Architectures Repo Download
Fedora 41 x86_64 (0)* Fedora 41 (3 downloads)
Fedora 42 x86_64 (0)* Fedora 42 (2 downloads)
Fedora 43 x86_64 (4)* Fedora 43 (5 downloads)
Fedora rawhide x86_64 (0)* Fedora rawhide (4 downloads)

* Total number of downloaded packages.