Back to Docker

docker compose port

_vendor/github.com/docker/compose/v5/docs/reference/compose_port.md

18.09-release667 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