mirror of https://github.com/docker/compose.git
container paths don't need to be expanded
They should not ever be relative. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
This commit is contained in:
parent
4b845746ef
commit
bc6b3f970b
|
@ -485,7 +485,6 @@ def resolve_volume_paths(service_dict, working_dir=None):
|
||||||
|
|
||||||
def resolve_volume_path(volume, working_dir, service_name):
|
def resolve_volume_path(volume, working_dir, service_name):
|
||||||
container_path, host_path = split_path_mapping(volume)
|
container_path, host_path = split_path_mapping(volume)
|
||||||
container_path = os.path.expanduser(container_path)
|
|
||||||
|
|
||||||
if host_path is not None:
|
if host_path is not None:
|
||||||
if host_path.startswith('.'):
|
if host_path.startswith('.'):
|
||||||
|
|
Loading…
Reference in New Issue