Skip to content

Commit f85f31a

Browse files
authored
Merge pull request #1849 from johannespostler/1516-endport-port-documentation
Switch ports in documentation for EndpointSpec (#1516)
2 parents 4590e2a + 1bb4155 commit f85f31a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/types/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ class EndpointSpec(dict):
444444
balancing between tasks (``'vip'`` or ``'dnsrr'``). Defaults to
445445
``'vip'`` if not provided.
446446
ports (dict): Exposed ports that this service is accessible on from the
447-
outside, in the form of ``{ target_port: published_port }`` or
448-
``{ target_port: (published_port, protocol) }``. Ports can only be
447+
outside, in the form of ``{ published_port: target_port }`` or
448+
``{ published_port: (target_port, protocol) }``. Ports can only be
449449
provided if the ``vip`` resolution mode is used.
450450
"""
451451
def __init__(self, mode=None, ports=None):

0 commit comments

Comments
 (0)