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.
|
2022-08-02 13:11:57 +02:00
|
|
|
usage: docker compose port [OPTIONS] SERVICE PRIVATE_PORT
|
2021-05-05 17:37:08 +02:00
|
|
|
pname: docker compose
|
|
|
|
plink: docker_compose.yaml
|
|
|
|
options:
|
2022-07-26 14:58:08 +02:00
|
|
|
- option: index
|
|
|
|
value_type: int
|
|
|
|
default_value: "1"
|
|
|
|
description: index of the container if service has multiple replicas
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
|
|
|
- option: protocol
|
|
|
|
value_type: string
|
|
|
|
default_value: tcp
|
|
|
|
description: tcp or udp
|
|
|
|
deprecated: false
|
|
|
|
hidden: false
|
|
|
|
experimental: false
|
|
|
|
experimentalcli: false
|
|
|
|
kubernetes: false
|
|
|
|
swarm: false
|
2023-05-05 12:43:27 +02:00
|
|
|
inherited_options:
|
|
|
|
- option: dry-run
|
|
|
|
value_type: bool
|
|
|
|
default_value: "false"
|
|
|
|
description: Execute command in dry run mode
|
|
|
|
deprecated: false
|
|
|
|
hidden: 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
|
|
|
|
|