Skip to content

Commit

Permalink
add nvidia-docker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
spowelljr committed Sep 22, 2023
1 parent 2e6434f commit a569fbb
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions site/content/en/docs/tutorials/nvidia.md
Original file line number Diff line number Diff line change
@@ -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
---
Expand All @@ -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
Expand All @@ -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 %}}
Expand Down

0 comments on commit a569fbb

Please sign in to comment.