mirror of
https://github.com/docker/docs.git
synced 2026-04-01 08:48:56 +07:00
https://github.com/docker/compose/releases/tag/1.24.0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
454 B
Markdown
18 lines
454 B
Markdown
---
|
|
description: Prints the public port for a port bindings.
|
|
keywords: fig, composition, compose, docker, orchestration, cli, port
|
|
title: docker-compose port
|
|
notoc: 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.
|