Skip to content

Commit 1bb4155

Browse files
author
Johannes Postler
committed
Switch ports in documentation for EndpointSpec
Signed-off-by: Johannes Postler <[email protected]>
1 parent 190d95c commit 1bb4155

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)