exec:support to set custom log path - #112
Conversation
4646899 to
43fa230
Compare
|
ping @fuweid @AkihiroSuda @mikebrow can you review this pr thanks? |
3b92e61 to
be762e7
Compare
1e7ee71 to
8e276f3
Compare
|
thank you |
8e276f3 to
69f7a51
Compare
69f7a51 to
f2e255e
Compare
f2e255e to
9238bac
Compare
|
ping @fuweid |
|
@thaJeztah can you review this pr? docker may have same issue. |
|
PTAL @dmcgowan try to fix containerd/containerd#8972 |
|
Looks like this PR will auto-close the containerd issue because the PR description has "to fix Can someone with permissions edit the description to remove that part (change it to "to address")? |
done |
|
Thx! Commented from my phone, and didn't review yet, but thought I'd comment before github got trigger happy and close the ticket pre-maturely |
There was a problem hiding this comment.
Pull request overview
This PR adds support for overriding the runc --log path specifically for exec calls, enabling a per-exec log destination without changing the global Runc.Log setting.
Changes:
- Add
ExecOpts.LogFileand wire it intoExec()sorunccan be invoked with a custom--logpath for exec. - Refactor command construction to support an optional log override (via
commandWithCustomLogFileandargs(logFile)). - Add a unit test for log-override argument behavior and pin
containerd/project-checksto a specific commit in CI.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| runc.go | Adds ExecOpts.LogFile, routes Exec() through a log-override capable command path, and updates global arg construction to accept an override. |
| command_linux.go | Introduces commandWithCustomLogFile and passes the override into r.args(logFile) on Linux. |
| command_other.go | Introduces commandWithCustomLogFile and passes the override into r.args(logFile) on non-Linux platforms. |
| runc_test.go | Adds a test around log-file override behavior for argument construction. |
| .github/workflows/ci.yml | Pins containerd/project-checks to a specific commit (annotated as v1.2.2). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
done thanks @samuelkarp |
Signed-off-by: ningmingxiao <ning.mingxiao@zte.com.cn> Signed-off-by: 宁明晓10296073 <ning.mingxiao@zte.com.cn>
|
done @samuelkarp |
|
can this pr be merged @samuelkarp ? |
|
@mikebrow can you re-review since it's been a year since your last approval? |
|
ping @samuelkarp |
I create a pr containerd/containerd#11862 to address containerd/containerd#8972
I want to specify runc log to custom path when exec .