diff options
author | aiordache <anca.iordache@docker.com> | 2020-11-18 19:00:27 +0100 |
---|---|---|
committer | aiordache <anca.iordache@docker.com> | 2021-02-15 15:44:29 +0100 |
commit | 597f1a27b42d2e016b59c092ac9cad109ed85a5e (patch) | |
tree | 11deb3b12baa5e59631f0263e300082e9e85af2c | |
parent | f18c038b9febc16ddd7b676119215b3e90fbea2d (diff) | |
download | docker-py-597f1a27b42d2e016b59c092ac9cad109ed85a5e.tar.gz |
Fix docs typo
Signed-off-by: aiordache <anca.iordache@docker.com>
-rw-r--r-- | docker/models/containers.py | 2 | ||||
-rw-r--r-- | docker/types/containers.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docker/models/containers.py b/docker/models/containers.py index 120386a..36cbbc4 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -683,7 +683,7 @@ class ContainerCollection(Collection): to a single container port. For example, ``{'1111/tcp': [1234, 4567]}``. - Imcompatible with ``host`` in ``network_mode``. + Incompatible with ``host`` network mode. privileged (bool): Give extended privileges to this container. publish_all_ports (bool): Publish all ports to the host. read_only (bool): Mount the container's root filesystem as read diff --git a/docker/types/containers.py b/docker/types/containers.py index 1df3fff..d1938c9 100644 --- a/docker/types/containers.py +++ b/docker/types/containers.py @@ -334,7 +334,7 @@ class HostConfig(dict): if dns_search: self['DnsSearch'] = dns_search - if network_mode is 'host' and port_bindings is not None: + if network_mode is 'host' and port_bindings: raise host_config_incompatible_error( 'network_mode', 'host', 'port_bindings' ) @@ -670,7 +670,7 @@ def host_config_value_error(param, param_value): def host_config_incompatible_error(param, param_value, incompatible_param): - error_msg = 'Incompatible {1} in {0} is not compatible with {2}' + error_msg = '\"{1}\" {0} is incompatible with {2}' return errors.InvalidArgument( error_msg.format(param, param_value, incompatible_param) ) |