From 75d54ac613a179e11b7dc3e5d0f770039473126f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=97=E5=8D=9A=E4=BB=81=20Buo-ren=20Lin?= Date: Tue, 6 May 2025 18:53:42 +0800 Subject: [PATCH] run: Drop unnecessary command options of the --workdir example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- docs/reference/commandline/container_run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/commandline/container_run.md b/docs/reference/commandline/container_run.md index 0e5c6e2ce2..1418644609 100644 --- a/docs/reference/commandline/container_run.md +++ b/docs/reference/commandline/container_run.md @@ -388,7 +388,7 @@ none 1.9G 0 1.9G 0% /mnt ### 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,