Skip to content
This repository has been archived by the owner on Mar 23, 2019. It is now read-only.

Allow for ${PWD} in settings.volumes #663

Merged
merged 1 commit into from
Jul 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion container/docker/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def run_conductor(self, command, config, base_path, params, engine_name=None, vo

def _add_volume(vol):
volume_parts = vol.split(':')
volume_parts[0] = os.path.normpath(os.path.expanduser(volume_parts[0]))
volume_parts[0] = os.path.normpath(os.path.abspath(os.path.expanduser(volume_parts[0])))
volumes[volume_parts[0]] = {
'bind': volume_parts[1] if len(volume_parts) > 1 else volume_parts[0],
'mode': volume_parts[2] if len(volume_parts) > 2 else 'rw'
Expand Down