-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
driver/docker: convert host bind path to os native #6000
driver/docker: convert host bind path to os native #6000
Conversation
@@ -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]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a comment here explaining why FromSlash is useful here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you help me phrase it, this is what i got
// for nomad to be OS agnostic we allow to supply the host mount path with forward or backward slash
// we then convert the slashes to OS specific slash in the agent side
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@schmichael update the phrasing again
7dcbbbc
to
86e1ffa
Compare
relative mounting can be specified using backslashes or forward slashes. so no prior knowledge of host OS is needed for relative volumes mounting
86e1ffa
to
0f47a7d
Compare
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
relative mounting can be specified using backslashes or forward slashes.
so no prior knowledge of host OS is needed for relative volumes mounting