diff --git a/cmd/compose/run.go b/cmd/compose/run.go index 45cb32218..d9845bb63 100644 --- a/cmd/compose/run.go +++ b/cmd/compose/run.go @@ -150,7 +150,7 @@ func runCommand(p *projectOptions, dockerCli command.Cli, backend api.Service) * flags.StringArrayVarP(&opts.environment, "env", "e", []string{}, "Set environment variables") flags.StringArrayVarP(&opts.labels, "label", "l", []string{}, "Add or override a label") flags.BoolVar(&opts.Remove, "rm", false, "Automatically remove the container when it exits") - flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-noTty allocation. By default docker compose run allocates a TTY") + flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-noTty allocation (default: auto-detected).") flags.StringVar(&opts.name, "name", "", " Assign a name to the container") flags.StringVarP(&opts.user, "user", "u", "", "Run as specified username or uid") flags.StringVarP(&opts.workdir, "workdir", "w", "", "Working directory inside the container") diff --git a/docs/reference/compose_run.md b/docs/reference/compose_run.md index 6d8c3e959..9a32a466d 100644 --- a/docs/reference/compose_run.md +++ b/docs/reference/compose_run.md @@ -13,7 +13,7 @@ Run a one-off command on a service. | `-i`, `--interactive` | | | Keep STDIN open even if not attached. | | `-l`, `--label` | `stringArray` | | Add or override a label | | `--name` | `string` | | Assign a name to the container | -| `-T`, `--no-TTY` | | | Disable pseudo-noTty allocation. By default docker compose run allocates a TTY | +| `-T`, `--no-TTY` | | | Disable pseudo-noTty allocation (default: auto-detected). | | `--no-deps` | | | Don't start linked services. | | `-p`, `--publish` | `stringArray` | | Publish a container's port(s) to the host. | | `--quiet-pull` | | | Pull without printing progress information. | diff --git a/docs/reference/docker_compose_run.yaml b/docs/reference/docker_compose_run.yaml index cd1637f48..a6f96443a 100644 --- a/docs/reference/docker_compose_run.yaml +++ b/docs/reference/docker_compose_run.yaml @@ -125,8 +125,7 @@ options: shorthand: T value_type: bool default_value: "true" - description: | - Disable pseudo-noTty allocation. By default docker compose run allocates a TTY + description: 'Disable pseudo-noTty allocation (default: auto-detected).' deprecated: false hidden: false experimental: false