run: Drop unnecessary command options of the --workdir example

The `-i` and `-t` options are not needed, as the `pwd` command does not require a TTY nor an interactive session.  Drop them to simplify the example and avoid causing unnecessary confusion to the reader.

Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
This commit is contained in:
林博仁 Buo-ren Lin 2025-05-06 18:53:42 +08:00 committed by GitHub
parent 58d318b990
commit 75d54ac613
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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,