Merge pull request #6050 from brlin-tw/patch-1

docs: run: Drop unnecessary command options of the --workdir example
This commit is contained in:
Sebastiaan van Stijn
2025-05-06 15:22:33 +02:00
committed by GitHub

View File

@ -388,7 +388,7 @@ none 1.9G 0 1.9G 0% /mnt
### <a name="workdir"></a> Set working directory (-w, --workdir)
```console
$ docker run -w /path/to/dir/ -i -t ubuntu pwd
$ docker run -w /path/to/dir/ ubuntu pwd
```
The `-w` option runs the command executed inside the directory specified, in this example,