-
Notifications
You must be signed in to change notification settings - Fork 259
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
Support adding mount to running containers #1918
Conversation
694d751
to
8d19e87
Compare
cmd/containerd-shim-runhcs-v1/service_internal_taskshim_test.go
Outdated
Show resolved
Hide resolved
c831568
to
973e9b0
Compare
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 we not rely on (*UtilityVM) Share
and add an analogous function to internal/hcs.System
?
Id rather not bring HCS specifics into cmd
3752fc7
to
50b6e1d
Compare
what HCS specifics are you referring to? task_hcs.go is already sending ht.c.Modify() modify requests for updating CPU and memory resources. |
cc @kharpMSFT |
50b6e1d
to
a6b1df3
Compare
the logic in |
The uvm.Share() function seems to be slightly different. It is sending a request with a different resource path type and is also a common code path and is not adding the share to release resource that is being mounted (not sure why this is ) . I think it would be better to have the mounting logic for running containers exclusive to this add-mount logic file as a non-exportable function if possible. |
0485caa
to
7f25b56
Compare
@helsaawy Refactored the code a little to reuse some part of it from uvm.Share() in the second commit of this PR. But no sure this can entirely move out to internal/* though. Let me know what you think |
cmd/containerd-shim-runhcs-v1/service_internal_taskshim_test.go
Outdated
Show resolved
Hide resolved
182f512
to
bbafdff
Compare
- Extend hcsTask.Update() to process and add mount for running process isolated and hyperV wcow containers Signed-off-by: Kirtana Ashok <[email protected]>
bbafdff
to
a027592
Compare
This PR adds hcsshim support to mount host volumes/directories to running windows containers.
HCS supports mounting host volumes/directories to running windows containers by modifying the hcs compute system with ResourcePath of Containers/MappedDirectories. These changes leverage this by extending the hcsTask.Update() function to process and add mounts for running process isolated and hyperV windows containers.