Add pause/resume implementation - #807
Conversation
|
Open questions:
|
There was a problem hiding this comment.
Actually windows do support pause/resume if the container is running under HyperV. It's a matter of calling Pause()/Resume() on the hcsshim.Container type.
You can check that a container was started using HyperV by checking the UseHyperV flag within the windows runtime container object.
|
Thanks to taking care of this one! |
We just need consistency across runtime I think. We need to decide to either error or on that case or silently succeed. |
Looks like both the Linux and Windows Shim are using |
Codecov Report
@@ Coverage Diff @@
## master #807 +/- ##
=======================================
Coverage 59.26% 59.26%
=======================================
Files 5 5
Lines 739 739
=======================================
Hits 438 438
Misses 198 198
Partials 103 103Continue to review full report at Codecov.
|
|
@mlaventure thanks! Updated with a Windows implementation, but I have no way to test. As you mentioned, given the runtimes were "resume," they are all aligned to use the same words "pause" and "resume" now. Only remaining issue is to decide about checking state and having an error for "invalid" state transitions. |
|
@estesp I realized that I actually never tested the HyperV version. So I'll do that later, since it may not work at all 😅 |
There was a problem hiding this comment.
Is there a reason why you placed these methods on the Runtime and not on the Container interfaces?
This adds pause and unpause to containerd's execution service and the same commands to the `ctr` client. Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com>
|
@crosbymichael obviously a newbie error.. just pushed update with Pause/Resume attached to container operations. This forced (maybe incorrectly?) me to add This all hinges on someone validating that pause/resume works for the |
|
@estesp Pause/Resume is implemented and AFAIK working within docker. I'm fine with this being merged without me having the time to test it on Windows, if it is broken, I'll fix it :) |
|
LGTM |
1 similar comment
|
LGTM |
This adds pause and resume to containerd's execution service and the
same commands to the
ctrclient.Fixes: #794
Signed-off-by: Phil Estes estesp@linux.vnet.ibm.com