Files
docker-docs/compose/reference/port.md
Adzim Zul Fahmi cd7f8e5246 fixing typo
2019-01-18 22:55:50 +07:00

442 B

description, keywords, title, notoc
description keywords title notoc
Prints the public port for a port bindings. fig, composition, compose, docker, orchestration, cli, port docker-compose port true
Usage: port [options] SERVICE PRIVATE_PORT

Options:
--protocol=proto  tcp or udp [default: tcp]
--index=index     index of the container if there are multiple
                  instances of a service [default: 1]

Prints the public port for a port binding.