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
thank you for you request @Zheaoli . I start writing code for journald so let me finish it based on your refacto #1050 . You can enhance the rest of the list
@fahedouch Great! Maybe I can write the fluentd and syslog first. BTW, maybe we need spilt the logger in two parts: the readable logger and the unreadable logger
Yes, because some of the loggers such as fluentd can not read the log directly after we wrote the log. So I think maybe we need to split the logger by two types
I have a question, should we make the log driver 100% compatible with Docker? Some of the drivers are easy to implement but hard to E2E tests, such as AWS Cloudwatch log driver or others. @fahedouch@AkihiroSuda
Yeah would be great to read the logs using directly nerdctl :-)
nerdctl -n k8s.io container logs e780b0e8aba7
WARN[0000] Currently, nerdctl logs only supports containers created with nerdctl run -d
FATAL[0000] open /var/lib/nerdctl/1935db59/containers/e780b0e8aba78200dfe6112dc834925952ee6bb3a39f64cb8ab88081c77c74f9/log-config.json: no such file or directory
Hello Everyone,
I am Rishabh, an undergraduate computer engineering student. I am interested in this issue. Is it still open?
Best Regards Rishabh Singh
Hi Rishabh, Yes, please go ahead. What lnterest you in this ticket ?
local
fluentbit
syslog
I guess, These three logging drivers are not implemented yet.
@vsiravar unfortunately I didn't have enough time to make a clear enough design. The idea is to separate the local driver into a different binary then consume it using containerd runtime v2 logging plugin mode.
"binary://BIN?KEY=VALUE" URI is parsed into Args {BIN, KEY, VALUE}.
Hi guys. We are using containerd in our environment with log driver as journald. We are seeing one issue where with containerd restart a lot of our containers which are being run via nerdctl are restarting. In logs we see the following: containerd[2742376]: time="2025-08-05T06:15:39.403104794Z" level=warning msg="failed to send SIGTERM signal, killing logging shim" error="os: process already finished" containerd[2742376]: time="2025-08-05T06:15:39.416547484Z" level=info msg="shim disconnected" id=7467fa1e6911584a37b3984561742e10bafaadb628e2a4f69ed630beddc567fe containerd[2742376]: time="2025-08-05T06:15:39.416834544Z" level=warning msg="cleaning up after shim disconnected" id=7467fa1e6911584a37b3984561742e10bafaadb628e2a4f69ed630beddc567fe namespace=default containerd[2742376]: time="2025-08-05T06:15:39.416945776Z" level=info msg="cleaning up dead shim"
Can someone suggest as to if this is expected. Ideally I would not want containers to restart with restart of containerd. What can I do to avoid the same ? @fahedouch
Activity
Zheaoli commentedon May 10, 2022
Maybe I can handle the rest of the task in this issue. @fahedouch would you mind this issue to me?
fahedouch commentedon May 11, 2022
thank you for you request @Zheaoli . I start writing code for
journaldso let me finish it based on your refacto #1050 . You can enhance the rest of the listZheaoli commentedon May 11, 2022
@fahedouch Great! Maybe I can write the
fluentdandsyslogfirst. BTW, maybe we need spilt the logger in two parts: the readable logger and the unreadable loggerfahedouch commentedon May 11, 2022
@Zheaoli What do you mean by readable logger and the unreadable logger here ?
Zheaoli commentedon May 11, 2022
Yes, because some of the loggers such as
fluentdcan not read the log directly after we wrote the log. So I think maybe we need to split the logger by two typesAkihiroSuda commentedon May 11, 2022
Probably we should support using multiple drivers simultaneously. Then we can read/write jsonfiles while writing to fluentd.
Zheaoli commentedon May 11, 2022
SGTM.
fahedouch commentedon May 11, 2022
We are creating a dependency between drivers here;
json-filedriver issue will impactfluentddriver from nerdctl point of view. This can be voluntary when the user configures generated jsonfiles as fluentdtailinput (https://docs.fluentd.org/input/tail)I think we should implement
fluentddriver as a separated LoggerFunc, we can implement one of the fluentd inputusing this module https://github.com/fluent/fluent-logger-golang
fahedouch commentedon May 19, 2022
@Zheaoli FYI I start working on
localdriver.Zheaoli commentedon May 23, 2022
I have a question, should we make the log driver 100% compatible with Docker? Some of the drivers are easy to implement but hard to E2E tests, such as AWS Cloudwatch log driver or others. @fahedouch @AkihiroSuda
fahedouch commentedon May 23, 2022
@Zheaoli implement the above list is enough at least for the moment
Zheaoli commentedon May 23, 2022
SGTM
AkihiroSuda commentedon May 23, 2022
I think the AWS CloudWatch driver should be implemented as a third party plugin that can be called with --log-driver binary://foo
Zheaoli commentedon May 23, 2022
SGTM, I think I can make a design proposal
6 remaining items
fahedouch commentedon Jul 20, 2022
@manugupt1 Sure let me cleanup what I did and push it ASAP
Zheaoli commentedon Sep 4, 2022
@manugupt1 is there any update about this issue?
manugupt1 commentedon Sep 4, 2022
Sorry, been busy with work a lot. So, I have not made much progress
manugupt1 commentedon Sep 11, 2022
@AkihiroSuda @fahedouch @Zheaoli Should we close this as third party support is open or keep it open for inbuilt drivers?
dalvarezquiroga commentedon Nov 24, 2022
Yeah would be great to read the logs using directly nerdctl :-)
nerdctl -n k8s.io container logs e780b0e8aba7
WARN[0000] Currently,
nerdctl logsonly supports containers created withnerdctl run -dFATAL[0000] open /var/lib/nerdctl/1935db59/containers/e780b0e8aba78200dfe6112dc834925952ee6bb3a39f64cb8ab88081c77c74f9/log-config.json: no such file or directory
anonymousr007 commentedon Aug 7, 2023
Hello Everyone,
I am Rishabh, an undergraduate computer engineering student. I am interested in this issue. Is it still open?
Best Regards
Rishabh Singh
fahedouch commentedon Aug 7, 2023
Hi Rishabh,
Yes, please go ahead. What lnterest you in this ticket ?
anonymousr007 commentedon Aug 8, 2023
I guess, These three logging drivers are not implemented yet.
austinvazquez commentedon Nov 2, 2023
Hi @fahedouch, can this ticket also include adding support for "none" logging driver?
The use case is to be able to disable container logs from compose file.
e.g.
nerdctl compose upofdocker-compose.ymlresults in:
References:
[1] https://docs.docker.com/config/containers/logging/configure/#supported-logging-drivers
vsiravar commentedon Nov 26, 2023
@fahedouch are you working on the local log driver? Do you have a draft for the design for inspiration :). I can help with the implementation.
fahedouch commentedon Nov 29, 2023
@vsiravar unfortunately I didn't have enough time to make a clear enough design. The idea is to separate the
localdriver into a different binary then consume it usingcontainerd runtime v2 logging plugin mode.aadarsh-mohta commentedon Aug 5, 2025
Hi guys. We are using containerd in our environment with log driver as journald. We are seeing one issue where with containerd restart a lot of our containers which are being run via nerdctl are restarting. In logs we see the following:
containerd[2742376]: time="2025-08-05T06:15:39.403104794Z" level=warning msg="failed to send SIGTERM signal, killing logging shim" error="os: process already finished" containerd[2742376]: time="2025-08-05T06:15:39.416547484Z" level=info msg="shim disconnected" id=7467fa1e6911584a37b3984561742e10bafaadb628e2a4f69ed630beddc567fe containerd[2742376]: time="2025-08-05T06:15:39.416834544Z" level=warning msg="cleaning up after shim disconnected" id=7467fa1e6911584a37b3984561742e10bafaadb628e2a4f69ed630beddc567fe namespace=default containerd[2742376]: time="2025-08-05T06:15:39.416945776Z" level=info msg="cleaning up dead shim"Can someone suggest as to if this is expected. Ideally I would not want containers to restart with restart of containerd. What can I do to avoid the same ?
@fahedouch
ningmingxiao commentedon Aug 19, 2025
//assign me @aadarsh-mohta I will fix it later.