Skip to content

Commit 75d54ac

Browse files
authored
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>
1 parent 58d318b commit 75d54ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/reference/commandline/container_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ none 1.9G 0 1.9G 0% /mnt
388388
### <a name="workdir"></a> Set working directory (-w, --workdir)
389389

390390
```console
391-
$ docker run -w /path/to/dir/ -i -t ubuntu pwd
391+
$ docker run -w /path/to/dir/ ubuntu pwd
392392
```
393393

394394
The `-w` option runs the command executed inside the directory specified, in this example,

0 commit comments

Comments
 (0)