mirror of https://github.com/docker/cli.git
Merge pull request #3414 from patel-zeel/patch-1
Correct device syntax to --gpus
This commit is contained in:
commit
36f6017afa
|
@ -634,7 +634,7 @@ $ docker run -it --rm --gpus device=GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a ubu
|
||||||
The example below exposes the first and third GPUs.
|
The example below exposes the first and third GPUs.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run -it --rm --gpus device=0,2 nvidia-smi
|
$ docker run -it --rm --gpus '"device=0,2"' nvidia-smi
|
||||||
```
|
```
|
||||||
|
|
||||||
### Restart policies (--restart)
|
### Restart policies (--restart)
|
||||||
|
|
Loading…
Reference in New Issue