mirror of https://github.com/docker/docker-py.git
Added dns_search parameter to client.start()
This commit is contained in:
parent
55b93d676b
commit
39d2a81cf6
|
@ -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
|
||||
|
|
|
@ -705,7 +705,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')
|
||||
|
||||
|
@ -759,6 +759,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