2021-05-05 17:37:08 +02:00
|
|
|
command: docker compose port
|
|
|
|
short: Print the public port for a port binding.
|
2021-06-08 09:39:49 +02:00
|
|
|
long: Prints the public port for a port binding.
|
2021-05-05 17:37:08 +02:00
|
|
|
usage: docker compose port [options] [--] SERVICE PRIVATE_PORT
|
|
|
|
pname: docker compose
|
|
|
|
plink: docker_compose.yaml
|
|
|
|
options:
|
2021-09-13 17:41:21 +02:00
|
|
|
- option: index
|
|
|
|
value_type: int
|
|
|
|
default_value: "1"
|
|
|
|
description: index of the container if service has multiple replicas
|
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: protocol
|
|
|
|
value_type: string
|
|
|
|
default_value: tcp
|
|
|
|
description: tcp or udp
|
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2021-05-05 17:37:08 +02:00
|
|
|
deprecated: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
|