2022-03-09 12:57:07 +01:00
|
|
|
# docker compose port
|
|
|
|
|
|
|
|
<!---MARKER_GEN_START-->
|
|
|
|
Print the public port for a port binding.
|
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2022-12-29 14:32:16 +01:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:-------------|:---------|:--------|:--------------------------------------------------------|
|
2023-05-05 12:43:27 +02:00
|
|
|
| `--dry-run` | | | Execute command in dry run mode |
|
2023-07-03 10:21:33 +02:00
|
|
|
| `--index` | `int` | `0` | index of the container if service has multiple replicas |
|
2022-12-29 14:32:16 +01:00
|
|
|
| `--protocol` | `string` | `tcp` | tcp or udp |
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
|
|
|
|
<!---MARKER_GEN_END-->
|
2021-06-08 09:39:49 +02:00
|
|
|
|
|
|
|
## Description
|
|
|
|
|
|
|
|
Prints the public port for a port binding.
|