service: Use OrderedDict to preserve volumes order on versions prior 3.6.

Signed-off-by: Antony MECHIN <antony.mechin@docker.com>
This commit is contained in:
Antony MECHIN 2018-09-26 15:15:59 +02:00
parent 39b0518850
commit bf46a6cc60
1 changed files with 1 additions and 1 deletions

View File

@ -1429,7 +1429,7 @@ def merge_volume_bindings(volumes, tmpfs, previous_container, mounts):
"""
affinity = {}
volume_bindings = dict(
volume_bindings = OrderedDict(
build_volume_binding(volume)
for volume in volumes
if volume.external