2022-03-09 12:57:07 +01:00
|
|
|
# docker compose port
|
|
|
|
|
|
|
|
<!---MARKER_GEN_START-->
|
2024-07-17 11:27:58 +02:00
|
|
|
Prints the public port for a port binding
|
2022-03-09 12:57:07 +01:00
|
|
|
|
|
|
|
### Options
|
|
|
|
|
2022-12-29 14:32:16 +01:00
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|:-------------|:---------|:--------|:--------------------------------------------------------|
|
2024-07-17 11:27:58 +02:00
|
|
|
| `--dry-run` | `bool` | | Execute command in dry run mode |
|
2024-02-14 20:02:37 +01: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
|
|
|
|
|
2024-02-14 20:02:37 +01:00
|
|
|
Prints the public port for a port binding
|