From 015fe1cf5eacf93f965bd68b6e618adf2d9c115a Mon Sep 17 00:00:00 2001 From: Boik Date: Tue, 20 Dec 2016 10:44:00 +0800 Subject: [PATCH] Correct the description of dns_opt option of create_container Signed-off-by: Boik --- docker/api/container.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/api/container.py b/docker/api/container.py index 91084219a0..532a9c6d8b 100644 --- a/docker/api/container.py +++ b/docker/api/container.py @@ -391,8 +391,6 @@ def create_container(self, image, command=None, hostname=None, user=None, ``{"PASSWORD": "xxx"}``. dns (:py:class:`list`): DNS name servers. Deprecated since API version 1.10. Use ``host_config`` instead. - dns_opt (:py:class:`list`): Additional options to be added to the - container's ``resolv.conf`` file volumes (str or list): List of paths inside the container to use as volumes. volumes_from (:py:class:`list`): List of container names or Ids to @@ -498,6 +496,8 @@ def create_host_config(self, *args, **kwargs): to have read-write access to the host's ``/dev/sda`` via a node named ``/dev/xvda`` inside the container. dns (:py:class:`list`): Set custom DNS servers. + 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 container, as a mapping of hostname to IP address.