mirror of https://github.com/docker/compose.git
82 lines
2.1 KiB
YAML
82 lines
2.1 KiB
YAML
|
command: docker compose exec
|
||
|
short: Execute a command in a running container.
|
||
|
long: Execute a command in a running container.
|
||
|
usage: docker compose exec [options] [-e KEY=VAL...] [--] SERVICE COMMAND [ARGS...]
|
||
|
pname: docker compose
|
||
|
plink: docker_compose.yaml
|
||
|
options:
|
||
|
- option: ""
|
||
|
shorthand: T
|
||
|
value_type: bool
|
||
|
default_value: "false"
|
||
|
description: |
|
||
|
Disable pseudo-tty allocation. By default `docker compose exec` allocates a TTY.
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
- option: detach
|
||
|
shorthand: d
|
||
|
value_type: bool
|
||
|
default_value: "false"
|
||
|
description: 'Detached mode: Run command in the background.'
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
- option: env
|
||
|
shorthand: e
|
||
|
value_type: stringArray
|
||
|
default_value: '[]'
|
||
|
description: Set environment variables
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
- option: index
|
||
|
value_type: int
|
||
|
default_value: "1"
|
||
|
description: |
|
||
|
index of the container if there are multiple instances of a service [default: 1].
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
- option: privileged
|
||
|
value_type: bool
|
||
|
default_value: "false"
|
||
|
description: Give extended privileges to the process.
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
- option: user
|
||
|
shorthand: u
|
||
|
value_type: string
|
||
|
description: Run the command as this user.
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
- option: workdir
|
||
|
shorthand: w
|
||
|
value_type: string
|
||
|
description: Path to workdir directory for this command.
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
deprecated: false
|
||
|
experimental: false
|
||
|
experimentalcli: false
|
||
|
kubernetes: false
|
||
|
swarm: false
|
||
|
|