mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
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:
parent
d5c314b382
commit
b64184e388
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user