diff --git a/docker/api/container.py b/docker/api/container.py index d02ad78d4a..c59a6d01a5 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -465,7 +465,7 @@ def create_host_config(self, *args, **kwargs): dns_opt (:py:class:`list`): Additional options to be added to the container's ``resolv.conf`` file dns_search (:py:class:`list`): DNS search domains. - extra_hosts (dict): Addtional hostnames to resolve inside the + extra_hosts (dict): Additional hostnames to resolve inside the container, as a mapping of hostname to IP address. group_add (:py:class:`list`): List of additional group names and/or IDs that the container process will run as. diff --git a/docker/models/containers.py b/docker/models/containers.py index 14545a7688..f60ba6e225 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -558,7 +558,7 @@ def run(self, image, command=None, stdout=True, stderr=False, environment (dict or list): Environment variables to set inside the container, as a dictionary or a list of strings in the format ``["SOMEVARIABLE=xxx"]``. - extra_hosts (dict): Addtional hostnames to resolve inside the + extra_hosts (dict): Additional hostnames to resolve inside the container, as a mapping of hostname to IP address. group_add (:py:class:`list`): List of additional group names and/or IDs that the container process will run as.