Skip to content

Commit af39f24

Browse files
committed
docs: fix nvidia container toolkit commands. Fix #1654
Signed-off-by: Luca Di Maio <[email protected]>
1 parent 84b73e8 commit af39f24

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/useful_tips.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,16 @@ Alternatively from the `--nvidia` flag, you can use NVidia's own [nvidia-contain
594594
After following the [official guide to set nvidia-ctk up](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/user-guide.html)
595595
you can use it from distrobox doing:
596596

597+
In case of podman container manager, run:
598+
599+
```console
600+
distrobox create --name example-nvidia-toolkit --additional-flags "--gpus all" --image docker.io/nvidia/cuda
601+
```
602+
603+
In case of docker container manager, run:
604+
597605
```console
598-
distrobox create --name example-nvidia-toolkit --additional-flags "--runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all -e NVIDIA_DRIVER_CAPABILITIES=all" --image nvidia/cuda
606+
distrobox create --name example-nvidia-toolkit --additional-flags "--gpus all --device=nvidia.com/gpu=all" --image docker.io/nvidia/cuda
599607
```
600608

601609
## Slow creation on podman and image size getting bigger with distrobox create

0 commit comments

Comments
 (0)