nvidia-docker bootstrapping
Add support for bootstrapping special docker swarm hosts that have access to Nvidia GPUs.
Installs and configures:
- Nvidia drivers for Ubuntu
nvidia-docker-toolkit
vianvidia-docker2
- sets
nvidia
as default docker runtime
To tell a swarm service to use the GPUs (in a docker-compose.yaml file) you must pass the following environment variables:
NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
NVIDIA_VISIBLE_DEVICES=all
You can read more about it on the official documentation here