use-cases: Update documentation for using Nvidia GPU with Kata

When running docker with Nvidia GPU, the option --cap-add=ALL is required.

Fixes: #622

Signed-off-by: Jimmy Xu <jungming.xjm@antfin.com>
This commit is contained in:
Jimmy Xu
2020-03-27 12:38:10 +08:00
parent c4dc530708
commit 21743269b0

View File

@@ -199,7 +199,7 @@ Use the following steps to pass an Nvidia GPU device in pass-through mode with K
4. Start a Kata container with GPU device:
```
$ sudo docker run -it --runtime=kata-runtime --rm --device /dev/vfio/45 centos /bin/bash
$ sudo docker run -it --runtime=kata-runtime --cap-add=ALL --device /dev/vfio/45 centos /bin/bash
```
5. Run `lspci` within the container to verify the GPU device is seen in the list