Skip to content

implement log opt with containerd logging driver - #959

Merged
AkihiroSuda merged 1 commit into
containerd:masterfrom
fahedouch:implement-log-opt-with-containerd-logging-driver
May 5, 2022
Merged

AkihiroSuda merged 1 commit into
containerd:masterfrom
fahedouch:implement-log-opt-with-containerd-logging-driver

Conversation

@fahedouch

Copy link
Copy Markdown
Member
  • using containerd runtime v2 logging plugin mode.
  • add log-opt for run subcmd

Signed-off-by: fahed dorgaa [email protected]

@fahedouch
fahedouch marked this pull request as draft April 3, 2022 17:04
@AkihiroSuda

Copy link
Copy Markdown
Member

What's this?

@fahedouch

Copy link
Copy Markdown
Member Author

@AkihiroSuda it is a draft PR to fix #864, I started working on this. My code is on local for the moment!

Comment thread pkg/taskutil/taskutil.go Resolved
@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch 2 times, most recently from 86f6cd1 to 1fa364d Compare April 24, 2022 13:11
@fahedouch
fahedouch marked this pull request as ready for review April 24, 2022 13:12
@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch 6 times, most recently from b6edec9 to b620b36 Compare April 24, 2022 21:07
Comment thread README.md Resolved
Comment thread cmd/nerdctl/run_test.go Resolved
Comment thread cmd/nerdctl/run_test.go Resolved
Comment thread cmd/nerdctl/run_test.go Resolved
@fahedouch
fahedouch marked this pull request as draft April 25, 2022 14:45
@fahedouch fahedouch added this to the v0.20.0 (tentative) milestone Apr 26, 2022
@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch 4 times, most recently from 46b1473 to 524a9ae Compare April 26, 2022 14:40
@fahedouch
fahedouch marked this pull request as ready for review April 26, 2022 14:41
@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch 5 times, most recently from d28c8f0 to cb2723d Compare April 28, 2022 20:16
@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch 2 times, most recently from 939478d to d121d12 Compare May 1, 2022 16:02
Comment thread README.md Resolved
Comment thread cmd/nerdctl/run_test.go Resolved
@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch 10 times, most recently from 263ad3f to 5ad44ab Compare May 5, 2022 13:45
@fahedouch
fahedouch requested a review from AkihiroSuda May 5, 2022 13:55

@junnplus junnplus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch 2 times, most recently from 1b9f1e6 to 0112243 Compare May 5, 2022 17:03
@fahedouch
fahedouch force-pushed the implement-log-opt-with-containerd-logging-driver branch from 0112243 to d3e449a Compare May 5, 2022 17:03

@AkihiroSuda AkihiroSuda left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

Comment thread cmd/nerdctl/main.go
loggingMode = true
break
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for going back and forth, but this logic doesn’t seem robust.
We have to ensure that MagicArgv1 is always argv1.
Other args should be encoded in argv2 or in the metadata referred by argv2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants