Handle windows volume paths
When a relative path is expanded and we're on a windows platform, it expands to include the drive, eg C:\ , which was causing a ConfigError as we split on ":" in parse_volume_spec and that was giving too many parts. Use os.path.splitdrive instead of manually calculating the drive. This should help us deal with windows drives as part of the volume path better than us doing it manually. Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
This commit is contained in:
parent
c673ce37c7
commit
f4cd5b1d45
5 changed files with 51 additions and 5 deletions
|
|
@ -2,6 +2,7 @@ import os
|
|||
import sys
|
||||
|
||||
DEFAULT_TIMEOUT = 10
|
||||
IS_WINDOWS_PLATFORM = (sys.platform == "win32")
|
||||
LABEL_CONTAINER_NUMBER = 'com.docker.compose.container-number'
|
||||
LABEL_ONE_OFF = 'com.docker.compose.oneoff'
|
||||
LABEL_PROJECT = 'com.docker.compose.project'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue