mirror of
https://github.com/docker/compose.git
synced 2025-09-18 07:17:42 +02:00
document (hidden) --tty --interactive flags
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
09689400e5
commit
b768232c0e
@ -6,6 +6,12 @@ This is the equivalent of `docker exec` targeting a Compose service.
|
|||||||
With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
|
With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
|
||||||
you can use a command such as `docker compose exec web sh` to get an interactive prompt.
|
you can use a command such as `docker compose exec web sh` to get an interactive prompt.
|
||||||
|
|
||||||
|
By default, Compose will enter container in interactive mode and allocate a TTY, while the equivalent `docker exec`
|
||||||
|
command requires passing `--interactive --tty` flags to get the same behavior. Compose also support those two flags
|
||||||
|
to offer a smooth migration between commands, whenever they are no-op by default. Still, `interactive` can be used to
|
||||||
|
force disabling interactive mode (`--interactive=false`), typically when `docker compose exec` command is used inside
|
||||||
|
a script.
|
||||||
|
|
||||||
### Options
|
### Options
|
||||||
|
|
||||||
| Name | Type | Default | Description |
|
| Name | Type | Default | Description |
|
||||||
@ -28,3 +34,9 @@ This is the equivalent of `docker exec` targeting a Compose service.
|
|||||||
|
|
||||||
With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
|
With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
|
||||||
you can use a command such as `docker compose exec web sh` to get an interactive prompt.
|
you can use a command such as `docker compose exec web sh` to get an interactive prompt.
|
||||||
|
|
||||||
|
By default, Compose will enter container in interactive mode and allocate a TTY, while the equivalent `docker exec`
|
||||||
|
command requires passing `--interactive --tty` flags to get the same behavior. Compose also support those two flags
|
||||||
|
to offer a smooth migration between commands, whenever they are no-op by default. Still, `interactive` can be used to
|
||||||
|
force disabling interactive mode (`--interactive=false`), typically when `docker compose exec` command is used inside
|
||||||
|
a script.
|
@ -5,6 +5,12 @@ long: |-
|
|||||||
|
|
||||||
With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
|
With this subcommand, you can run arbitrary commands in your services. Commands allocate a TTY by default, so
|
||||||
you can use a command such as `docker compose exec web sh` to get an interactive prompt.
|
you can use a command such as `docker compose exec web sh` to get an interactive prompt.
|
||||||
|
|
||||||
|
By default, Compose will enter container in interactive mode and allocate a TTY, while the equivalent `docker exec`
|
||||||
|
command requires passing `--interactive --tty` flags to get the same behavior. Compose also support those two flags
|
||||||
|
to offer a smooth migration between commands, whenever they are no-op by default. Still, `interactive` can be used to
|
||||||
|
force disabling interactive mode (`--interactive=false`), typically when `docker compose exec` command is used inside
|
||||||
|
a script.
|
||||||
usage: docker compose exec [OPTIONS] SERVICE COMMAND [ARGS...]
|
usage: docker compose exec [OPTIONS] SERVICE COMMAND [ARGS...]
|
||||||
pname: docker compose
|
pname: docker compose
|
||||||
plink: docker_compose.yaml
|
plink: docker_compose.yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user