mirror of https://github.com/docker/docs.git
Update resource_constraints.md
The docker engine seems to get confused if you don't quote device=1,2 as shown I.E. '"device=1,2"'
This commit is contained in:
parent
cb2e2e6986
commit
4f12a72ffc
|
@ -323,7 +323,7 @@ $ docker run -it --rm --gpus device=GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a ubu
|
|||
Exposes that specific GPU.
|
||||
|
||||
```bash
|
||||
$ docker run -it --rm --gpus device=0,2 ubuntu nvidia-smi
|
||||
$ docker run -it --rm --gpus '"device=0,2"' ubuntu nvidia-smi
|
||||
```
|
||||
|
||||
Exposes the first and third GPUs.
|
||||
|
|
Loading…
Reference in New Issue