From a569fbb495e9967b3361db6d6b47fafa0baccfca Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Fri, 22 Sep 2023 16:58:07 -0700 Subject: [PATCH] add nvidia-docker docs --- site/content/en/docs/tutorials/nvidia.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/site/content/en/docs/tutorials/nvidia.md b/site/content/en/docs/tutorials/nvidia.md index 31e22a142d56..f0725b4004b8 100644 --- a/site/content/en/docs/tutorials/nvidia.md +++ b/site/content/en/docs/tutorials/nvidia.md @@ -1,6 +1,6 @@ --- title: "Using NVIDIA GPUs with minikube" -linkTitle: "Using NVIDIA GPUS with minikube" +linkTitle: "Using NVIDIA GPUs with minikube" weight: 1 date: 2018-01-02 --- @@ -14,7 +14,18 @@ date: 2018-01-02 {{% tabs %}} {{% tab docker %}} +## Using the docker driver +- Install the [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html) on your host machine + +- Configure Docker: + ```shell + sudo nvidia-ctk runtime configure --runtime=docker && sudo systemctl restart docker + ``` +- Start minikube: + ```shell + minikube start --driver docker --container-runtime nvidia-docker + ``` {{% /tab %}} {{% tab none %}} ## Using the 'none' driver @@ -35,7 +46,7 @@ to expose GPUs with `--driver=kvm`. Please don't mix these instructions. - Install NVIDIA's device plugin: ```shell - kubectl create -f https://raw.githubusercontent.com/NVIDIA/k8s-device-plugin/master/nvidia-device-plugin.yml + minikube addons enable nvidia-device-plugin ``` {{% /tab %}} {{% tab kvm %}}