mirror of https://github.com/docker/docker-py.git
Merge pull request #614 from ibuildthecloud/extra-host-list
Allow extra_hosts to be a list too
This commit is contained in:
commit
ed07b053e9
|
@ -450,7 +450,7 @@ def create_host_config(
|
|||
for k, v in sorted(six.iteritems(extra_hosts))
|
||||
]
|
||||
|
||||
host_config['ExtraHosts'] = extra_hosts
|
||||
host_config['ExtraHosts'] = extra_hosts
|
||||
|
||||
if links is not None:
|
||||
if isinstance(links, dict):
|
||||
|
|
Loading…
Reference in New Issue