mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
driver/docker: convert host bind path to os native
relative mounting can be specified using backslashes or forward slashes. so no prior knowledge of host OS is needed for relative volumes mounting
This commit is contained in:
@@ -237,7 +237,7 @@ func parseVolumeSpecWindows(volBind string) (hostPath string, containerPath stri
|
||||
return "", "", "", fmt.Errorf("not <src>:<destination> format")
|
||||
}
|
||||
|
||||
hostPath = parts[0]
|
||||
hostPath = filepath.FromSlash(parts[0])
|
||||
containerPath = parts[1]
|
||||
|
||||
if len(parts) > 2 {
|
||||
|
||||
Reference in New Issue
Block a user