mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
668 B
668 B
docker compose port
Print the public port for a port binding.
Options
Name | Type | Default | Description |
---|---|---|---|
--dry-run |
Execute command in dry run mode | ||
--index |
int |
0 |
index of the container if service has multiple replicas |
--protocol |
string |
tcp |
tcp or udp |
Description
Prints the public port for a port binding.