@@ -649,9 +649,7 @@ def run(self, image, command=None, stdout=True, stderr=False,
649
649
- ``container:<name|id>`` Reuse another container's network
650
650
stack.
651
651
- ``host`` Use the host network stack.
652
- This mode is incompatible with ``ports``. If ``host`` is
653
- used as network_mode, all of listed up to ``ports``` are
654
- ignored in running container.
652
+ This mode is incompatible with ``ports``.
655
653
656
654
Incompatible with ``network``.
657
655
oom_kill_disable (bool): Whether to disable OOM killer.
@@ -670,8 +668,6 @@ def run(self, image, command=None, stdout=True, stderr=False,
670
668
``port/protocol``, where the protocol is either ``tcp``,
671
669
``udp``, or ``sctp``.
672
670
673
- Ports are ignored to bind with ``host`` as network mode.
674
-
675
671
The values of the dictionary are the corresponding ports to
676
672
open on the host, which can be either:
677
673
@@ -687,6 +683,7 @@ def run(self, image, command=None, stdout=True, stderr=False,
687
683
to a single container port. For example,
688
684
``{'1111/tcp': [1234, 4567]}``.
689
685
686
+ Imcompatible with ``host`` in ``network_mode``.
690
687
privileged (bool): Give extended privileges to this container.
691
688
publish_all_ports (bool): Publish all ports to the host.
692
689
read_only (bool): Mount the container's root filesystem as read
0 commit comments