Always use the Windows version of splitdrive when parsing volume mappings
Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
parent
ca3aef0c84
commit
db0a6cf2bb
2 changed files with 2 additions and 3 deletions
|
|
@ -3,6 +3,7 @@ from __future__ import unicode_literals
|
|||
|
||||
import functools
|
||||
import logging
|
||||
import ntpath
|
||||
import operator
|
||||
import os
|
||||
import string
|
||||
|
|
@ -944,7 +945,7 @@ def split_path_mapping(volume_path):
|
|||
if volume_path.startswith('.') or volume_path.startswith('~'):
|
||||
drive, volume_config = '', volume_path
|
||||
else:
|
||||
drive, volume_config = os.path.splitdrive(volume_path)
|
||||
drive, volume_config = ntpath.splitdrive(volume_path)
|
||||
|
||||
if ':' in volume_config:
|
||||
(host, container) = volume_config.split(':', 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue