From 2d6ebd1e3e8d9788a36423f7af6b90a57d074067 Mon Sep 17 00:00:00 2001 From: Zeel B Patel Date: Sun, 30 Jan 2022 13:53:43 +0530 Subject: [PATCH] Correct device syntax to --gpus Signed-off-by: Zeel B Patel --- docs/reference/commandline/run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/commandline/run.md b/docs/reference/commandline/run.md index 072e7d2957..20abfc8644 100644 --- a/docs/reference/commandline/run.md +++ b/docs/reference/commandline/run.md @@ -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. ```console -$ docker run -it --rm --gpus device=0,2 nvidia-smi +$ docker run -it --rm --gpus '"device=0,2"' nvidia-smi ``` ### Restart policies (--restart)