Enable CDI in Containerd
CDI (Container Device Interface) provides a standard mechanism for device vendors to describe what is required to provide access to a specific resource such as a GPU beyond a simple device name.
CDI support is enabled by default in containerd version 2.0 and later. Earlier versions, starting from 1.7.0, support for this feature requires manual activation.
TOC
Steps to Enable CDI in containerd v1.7.x
-
Update containerd configuration. Edit the configuration file:
Add or modify the following section:
-
Restart containerd.
Ensure the service is running correctly.
-
Verify CDI is Enabled.
Wait a moment, if there are logs, it means the setup was successful.