mirror of https://github.com/docker/docker-py.git
Merge pull request #230 from dotcloud/dns_search_support
Added dns_search parameter to client.start()
This commit is contained in:
commit
1e8009b8de
|
@ -214,7 +214,7 @@ Identical to the `docker search` command.
|
|||
```python
|
||||
c.start(container, binds=None, port_bindings=None, lxc_conf=None,
|
||||
publish_all_ports=False, links=None, privileged=False,
|
||||
dns=None, volumes_from=None, network_mode=None)
|
||||
dns=None, dns_search=None, volumes_from=None, network_mode=None)
|
||||
```
|
||||
|
||||
Similar to the `docker start` command, but doesn't support attach
|
||||
|
|
|
@ -715,7 +715,7 @@ class Client(requests.Session):
|
|||
|
||||
def start(self, container, binds=None, port_bindings=None, lxc_conf=None,
|
||||
publish_all_ports=False, links=None, privileged=False,
|
||||
dns=None, volumes_from=None, network_mode=None):
|
||||
dns=None, dns_search=None, volumes_from=None, network_mode=None):
|
||||
if isinstance(container, dict):
|
||||
container = container.get('Id')
|
||||
|
||||
|
@ -769,6 +769,9 @@ class Client(requests.Session):
|
|||
warnings.warn(warning_message.format('volumes_from'),
|
||||
DeprecationWarning)
|
||||
|
||||
if dns_search:
|
||||
start_config['DnsSearch'] = dns_search
|
||||
|
||||
if network_mode:
|
||||
start_config['NetworkMode'] = network_mode
|
||||
|
||||
|
|
Loading…
Reference in New Issue