mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-12 20:39:30 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user