1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
# docker compose port
<!---MARKER_GEN_START-->
Prints the public port for a port binding
### Options
| Name | Type | Default | Description |
|:-------------|:---------|:--------|:--------------------------------------------------------|
| `--dry-run` | `bool` | | Execute command in dry run mode |
| `--index` | `int` | `0` | 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
|