Files
docker-docs/compose/reference/port.md
Ulysses Souza 411bf944cb Update docs on command help (#11341)
* Update docs on command help

This is change is based on the output of the script proposed by @smola
in: https://github.com/docker/docker.github.io/pull/11173


Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>

* Formatting updates

* Minor style update

Co-authored-by: Usha Mandya <47779042+usha-mandya@users.noreply.github.com>
2020-09-08 11:57:19 +01:00

458 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.