此内容还未提供中文版,以下为英文版

docker-compose port

预计阅读时间: 1 分钟
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.

fig, composition, compose, docker, orchestration, cli, port