mirror of
https://github.com/docker/compose.git
synced 2025-07-14 01:04:26 +02:00
Co-authored-by: Allie Sadler <102604716+aevesdocker@users.noreply.github.com> Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
19 lines
668 B
Markdown
19 lines
668 B
Markdown
# docker compose port
|
|
|
|
<!---MARKER_GEN_START-->
|
|
Print the public port for a port binding.
|
|
|
|
### Options
|
|
|
|
| Name | Type | Default | Description |
|
|
|:-------------|:---------|:--------|:--------------------------------------------------------|
|
|
| `--dry-run` | | | Execute command in dry run mode |
|
|
| `--index` | `int` | `1` | index of the container if service has multiple replicas |
|
|
| `--protocol` | `string` | `tcp` | tcp or udp |
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
|
|
|
## Description
|
|
|
|
Prints the public port for a port binding. |