-
Notifications
You must be signed in to change notification settings - Fork 950
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
feature: independent runtime root #2748
feature: independent runtime root #2748
Conversation
Signed-off-by: zhuangqh <zhuangqhc@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #2748 +/- ##
=========================================
- Coverage 69.43% 69.4% -0.03%
=========================================
Files 277 277
Lines 17412 17412
=========================================
- Hits 12090 12085 -5
- Misses 4004 4009 +5
Partials 1318 1318
|
Sounds good! |
@@ -540,7 +541,7 @@ func (c *Client) createContainer(ctx context.Context, ref, id, checkpointDir str | |||
containerd.WithContainerLabels(container.Labels), | |||
containerd.WithRuntime(fmt.Sprintf("io.containerd.runtime.v1.%s", runtime.GOOS), &runctypes.RuncOptions{ | |||
Runtime: container.Runtime, | |||
RuntimeRoot: runtimeRoot, | |||
RuntimeRoot: path.Join(runtimeRoot, container.Runtime), |
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.
Do we first create this directory or someone would create it if non-exist?
Just confirm.
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.
Do we first create this directory or someone would create it if non-exist?
Just confirm.
The existence of the path and the security of the join are promised by runtime. 😄
LGTM |
We still should check if it is compatible for exist container |
I check the containerd shim will keep the runtime root, so it should not effect exist container
|
Signed-off-by: zhuangqh zhuangqhc@gmail.com
Ⅰ. Describe what this PR did
put different runtime to independent runtime root.
First, distinguish different runtime files. Secondly, it enables v1 containerd-shim to know which runtime to go (hack).
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews