Back to Compose

docker compose port

docs/reference/compose_port.md

5.1.3667 B
Original Source

docker compose port

<!---MARKER_GEN_START-->

Prints the public port for a port binding

Options

NameTypeDefaultDescription
--dry-runboolExecute command in dry run mode
--indexint0Index of the container if service has multiple replicas
--protocolstringtcptcp or udp
<!---MARKER_GEN_END-->

Description

Prints the public port for a port binding