mirror of
https://github.com/containers/ramalama.git
synced 2026-02-05 06:46:39 +01:00
docs: add note about container_use_devices usage
On SELinux systems, it may be necessary to turn on the `container_use_devices` boolean in order to run the `nvidia-smi` command from within a container. Signed-off-by: Micah Abbott <miabbott@redhat.com>
This commit is contained in:
@@ -109,6 +109,20 @@ Follow the installation instructions provided in the [NVIDIA Container Toolkit i
|
||||
+-----------------------------------------------------------------------------------------+
|
||||
```
|
||||
|
||||
> **NOTE:** On systems that have SELinux enabled, it may be necessary to turn on the `container_use_devices` boolean in order to run the `nvidia-smi` command successfully from a container.
|
||||
|
||||
To check the status of the boolean, run the following:
|
||||
|
||||
```bash
|
||||
getseboolean container_use_devices
|
||||
```
|
||||
|
||||
If the result of the command shows that the boolean is `off`, run the following to turn the boolean on:
|
||||
|
||||
```bash
|
||||
sudo setseboolean -P container_use_devices
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### CUDA Updates
|
||||
|
||||
Reference in New Issue
Block a user