-
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
Volume binds for windows containers #1321
Conversation
@mwieczorek Thanks for the PR! We will test this out once we make the 0.4 release over the next few days and merge this. |
@diptanu Any thoughts about it? Is it ok, or should I change something? |
|
||
var ( | ||
//Path inside container for mounted directory that is shared across tasks in a task group. | ||
SharedAllocContainerPath = filepath.Join("c:\\", SharedAllocName) |
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.
Why are we hardcoding c:\\
here? I understand that this is the default, but users can specify any other drive such as D
, E
, etc as their Data Dir. Is this going to work in all cases?
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.
Well, I am not sure how bind mount sharing between containers and hosts work in windows. Can you please explain how the file system is laid out inside a windows container? So if it's always going to be C:\\
I think this is fine.
@mwieczorek Sorry for taking so long. The PR looks good, but I have a question regarding the hard coded |
@mwieczorek Sounds good! |
@mwieczorek Also, probably worth asking the question on the docker project's mailing list/issues as well. |
@mwieczorek Thanks for shepherding this! |
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. |
Windows containers needs separate definition of paths for mounted volumes (with drive letters).
Without this patch we get an error during creating container, f.e.: