Skip to content

Commit db9af44

Browse files
author
aiordache
committed
Fix docs typo
Signed-off-by: aiordache <[email protected]>
1 parent d83a2ad commit db9af44

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker/models/containers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def run(self, image, command=None, stdout=True, stderr=False,
683683
to a single container port. For example,
684684
``{'1111/tcp': [1234, 4567]}``.
685685
686-
Imcompatible with ``host`` in ``network_mode``.
686+
Incompatible with ``host`` network mode.
687687
privileged (bool): Give extended privileges to this container.
688688
publish_all_ports (bool): Publish all ports to the host.
689689
read_only (bool): Mount the container's root filesystem as read

docker/types/containers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def __init__(self, version, binds=None, port_bindings=None,
334334
if dns_search:
335335
self['DnsSearch'] = dns_search
336336

337-
if network_mode is 'host' and port_bindings is not None:
337+
if network_mode is 'host' and port_bindings:
338338
raise host_config_incompatible_error(
339339
'network_mode', 'host', 'port_bindings'
340340
)
@@ -670,7 +670,7 @@ def host_config_value_error(param, param_value):
670670

671671

672672
def host_config_incompatible_error(param, param_value, incompatible_param):
673-
error_msg = 'Incompatible {1} in {0} is not compatible with {2}'
673+
error_msg = '\"{1}\" {0} is incompatible with {2}'
674674
return errors.InvalidArgument(
675675
error_msg.format(param, param_value, incompatible_param)
676676
)

0 commit comments

Comments
 (0)