Do not normalize volume paths on Windows by default
Add environment variable to enable normalization if needed. Do not normalize internal paths Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
f60c60205b
commit
efb09af271
4 changed files with 77 additions and 29 deletions
|
|
@ -651,7 +651,10 @@ def finalize_service(service_config, service_names, version, environment):
|
|||
|
||||
if 'volumes' in service_dict:
|
||||
service_dict['volumes'] = [
|
||||
VolumeSpec.parse(v) for v in service_dict['volumes']]
|
||||
VolumeSpec.parse(
|
||||
v, environment.get('COMPOSE_CONVERT_WINDOWS_PATHS')
|
||||
) for v in service_dict['volumes']
|
||||
]
|
||||
|
||||
if 'net' in service_dict:
|
||||
network_mode = service_dict.pop('net')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue