Skip to content

Commit 099715f

Browse files
gloursndeloof
authored andcommitted
update run no-TTY flag description as auto-detected by default
Signed-off-by: Guillaume Lours <[email protected]>
1 parent 09e0cca commit 099715f

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

cmd/compose/run.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func runCommand(p *projectOptions, dockerCli command.Cli, backend api.Service) *
150150
flags.StringArrayVarP(&opts.environment, "env", "e", []string{}, "Set environment variables")
151151
flags.StringArrayVarP(&opts.labels, "label", "l", []string{}, "Add or override a label")
152152
flags.BoolVar(&opts.Remove, "rm", false, "Automatically remove the container when it exits")
153-
flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-noTty allocation. By default docker compose run allocates a TTY")
153+
flags.BoolVarP(&opts.noTty, "no-TTY", "T", !dockerCli.Out().IsTerminal(), "Disable pseudo-noTty allocation (default: auto-detected).")
154154
flags.StringVar(&opts.name, "name", "", " Assign a name to the container")
155155
flags.StringVarP(&opts.user, "user", "u", "", "Run as specified username or uid")
156156
flags.StringVarP(&opts.workdir, "workdir", "w", "", "Working directory inside the container")

docs/reference/compose_run.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run a one-off command on a service.
1313
| `-i`, `--interactive` | | | Keep STDIN open even if not attached. |
1414
| `-l`, `--label` | `stringArray` | | Add or override a label |
1515
| `--name` | `string` | | Assign a name to the container |
16-
| `-T`, `--no-TTY` | | | Disable pseudo-noTty allocation. By default docker compose run allocates a TTY |
16+
| `-T`, `--no-TTY` | | | Disable pseudo-noTty allocation (default: auto-detected). |
1717
| `--no-deps` | | | Don't start linked services. |
1818
| `-p`, `--publish` | `stringArray` | | Publish a container's port(s) to the host. |
1919
| `--quiet-pull` | | | Pull without printing progress information. |

docs/reference/docker_compose_run.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,7 @@ options:
125125
shorthand: T
126126
value_type: bool
127127
default_value: "true"
128-
description: |
129-
Disable pseudo-noTty allocation. By default docker compose run allocates a TTY
128+
description: 'Disable pseudo-noTty allocation (default: auto-detected).'
130129
deprecated: false
131130
hidden: false
132131
experimental: false

0 commit comments

Comments
 (0)