1
0
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:
Micah Abbott
2025-03-28 17:37:43 -04:00
parent e1865100dd
commit 1eca34548c

View File

@@ -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