You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
based on this containerd/containerd#4830 (comment) containerd do not support log rotate. I think we can configure in /etc/nerdctl/nerdctl.toml how much logs can be stored in json file under : dataStore/{containers}/{ns}/{id}/{id}-json.log or may be a flag log-max-size with nerdctl run -d -
! WDYT @AkihiroSuda ?
Activity
Zheaoli commentedon Mar 9, 2022
containerd/containerd#4830
I'm not sure should nerdctl support this docker-daemon feature.
fahedouch commentedon Mar 9, 2022
based on this containerd/containerd#4830 (comment) containerd do not support log rotate. I think we can configure in
/etc/nerdctl/nerdctl.tomlhow much logs can be stored in json file under :dataStore/{containers}/{ns}/{id}/{id}-json.logor may be a flaglog-max-sizewithnerdctl run -d -! WDYT @AkihiroSuda ?
Zheaoli commentedon Mar 9, 2022
maybe we can add an argument in
tail -100 demo.logstyle?fuweid commentedon Mar 10, 2022
containerd supports log plugin for runC shimv2. Maybe we can implement jsonfile plugin for that
AkihiroSuda commentedon Mar 10, 2022
No, the CLI syntax should emulate
docker run --log-opt XXX.https://docs.docker.com/config/containers/logging/configure/
We have been already doing so: https://github.com/containerd/nerdctl/blob/v0.17.1/pkg/logging/logging.go
fuweid commentedon Mar 10, 2022
Good to know this 👏. It seems that there is a way to get the customize parameters from MagicArg1's value, like max-size, max-files.
fahedouch commentedon Mar 10, 2022
Yes @fuweid this seems a good idea. may be
nerdctl run --log-opt max-size=XX --log-opt max-file=XX. I take this issuefahedouch commentedon May 6, 2022
fixed by #959. We only support json-file plugin for the moment: #1039