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:
parent
58d318b990
commit
75d54ac613
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user