mirror of https://github.com/docker/compose.git
parent
db396b81ef
commit
1bab14213d
|
@ -708,8 +708,11 @@ class Client(requests.Session):
|
||||||
start_config['PublishAllPorts'] = publish_all_ports
|
start_config['PublishAllPorts'] = publish_all_ports
|
||||||
|
|
||||||
if links:
|
if links:
|
||||||
|
if isinstance(links, dict):
|
||||||
|
links = six.iteritems(links)
|
||||||
|
|
||||||
formatted_links = [
|
formatted_links = [
|
||||||
'{0}:{1}'.format(k, v) for k, v in sorted(six.iteritems(links))
|
'{0}:{1}'.format(k, v) for k, v in sorted(links)
|
||||||
]
|
]
|
||||||
|
|
||||||
start_config['Links'] = formatted_links
|
start_config['Links'] = formatted_links
|
||||||
|
|
Loading…
Reference in New Issue