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:
pneumoman 2021-02-26 14:19:24 -05:00 committed by GitHub
parent cb2e2e6986
commit 4f12a72ffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.