18 lines
458 B
Markdown
Raw Permalink Normal View History

2020-11-18 13:32:27 -05:00
---
description: Prints the public port for a port bindings.
keywords: fig, composition, compose, docker, orchestration, cli, port
title: docker-compose port
notoc: true
---
```none
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.