1
0
mirror of https://github.com/docker/cli.git synced 2026-01-06 05:41:44 +03:00

Fix wrong docker run command

It forgot the image name ubuntu

Signed-off-by: QQ喵 <gqqnb2005@gmail.com>
This commit is contained in:
QQ喵
2022-04-14 22:47:14 +08:00
committed by Sebastiaan van Stijn
parent dd3ba7396d
commit 90a1887d3c

View File

@@ -1036,7 +1036,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"' ubuntu nvidia-smi
```
### <a name="restart"></a> Restart policies (--restart)