File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ You can specify number of GPUs to use via `--gpus` option.
20
20
The following example exposes all available GPUs.
21
21
22
22
```
23
- nerdctl run -it --rm --gpus all nvidia/cuda:9.0 -base nvidia-smi
23
+ nerdctl run -it --rm --gpus all nvidia/cuda:12.3.1 -base-ubuntu20.04 nvidia-smi
24
24
```
25
25
26
26
You can also pass detailed configuration to ` --gpus ` option as a list of key-value pairs. The following options are provided.
@@ -32,7 +32,7 @@ You can also pass detailed configuration to `--gpus` option as a list of key-val
32
32
The following example exposes a specific GPU to the container.
33
33
34
34
```
35
- nerdctl run -it --rm --gpus '"capabilities=utility,compute",device=GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a' nvidia/cuda:9.0 -base nvidia-smi
35
+ nerdctl run -it --rm --gpus '"capabilities=utility,compute",device=GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a' nvidia/cuda:12.3.1 -base-ubuntu20.04 nvidia-smi
36
36
```
37
37
38
38
## Fields for ` nerdctl compose `
@@ -53,7 +53,7 @@ The following exposes all available GPUs to the container.
53
53
version: "3.8"
54
54
services:
55
55
demo:
56
- image: nvidia/cuda:9.0 -base
56
+ image: nvidia/cuda:12.3.1 -base-ubuntu20.04
57
57
command: nvidia-smi
58
58
deploy:
59
59
resources:
You can’t perform that action at this time.
0 commit comments