We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 190d95c commit 1bb4155Copy full SHA for 1bb4155
docker/types/services.py
@@ -444,8 +444,8 @@ class EndpointSpec(dict):
444
balancing between tasks (``'vip'`` or ``'dnsrr'``). Defaults to
445
``'vip'`` if not provided.
446
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
+ outside, in the form of ``{ published_port: target_port }`` or
+ ``{ published_port: (target_port, protocol) }``. Ports can only be
449
provided if the ``vip`` resolution mode is used.
450
"""
451
def __init__(self, mode=None, ports=None):
0 commit comments