Add ability to run NVIDIA containers without the NVIDIA container toolkit

This commit is contained in:
Josh.5
2024-03-14 19:23:34 +13:00
parent f17d31d077
commit 9c20a0f1f5
4 changed files with 25 additions and 3 deletions

View File

@@ -36,6 +36,14 @@ services:
- /dev/uinput
# Add AMD/Intel HW accelerated video encoding/decoding devices (optional)
#- /dev/dri
# Add NVIDIA HW accelerated devices (optional - must be run with runc docker runtime. If you use the nvidia runtime, this is not needed)
#- /dev/nvidia0
#- /dev/nvidiactl
#- /dev/nvidia-modeset
#- /dev/nvidia-uvm
#- /dev/nvidia-uvm-tools
#- /dev/nvidia-caps/nvidia-cap1
#- /dev/nvidia-caps/nvidia-cap2
# Ensure container access to devices 13:*
device_cgroup_rules:
- 'c 13:* rmw'

View File

@@ -24,6 +24,9 @@ Follow the [official instructions](https://docs.nvidia.com/datacenter/cloud-nati
If you do this, ensure that when you configure Docker Compose in the next step you choose the `nvidia` runtime.
Alternately, it is possible to run the container without the NVIDIA runtime by uncommenting the `/dev/nvidia` devices in the Compose file.
## CONFIGURE DOCKER COMPOSE:
Once you have installed docker, follow the [Compose Files](./docker-compose.md) section and select the right configuration file for your hardware.