Search or ask Docker

docker compose port

View Markdown
DescriptionList port mappings or print the public port for a specific mapping for the service
Usagedocker compose port [OPTIONS] SERVICE [PRIVATE_PORT]

Description

List port mappings or print the public port for a specific mapping for the service

Options

OptionDefaultDescription
--indexIndex of the container if service has multiple replicas
--protocoltcptcp or udp