-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Question] Is there a way to limit the size of the logs? #7434
Comments
There is a maximum log size for containers, in bytes, defined in |
If so, this might be a good entry for the troubleshooting guide.... |
Thank you, yes that's should accomplish what I'm looking for. |
Labeling this as containers.conf, since I should write this up in the forthcoming blog on containers.conf. |
I just want to add that docker uses |
@rhatdan, did you add that to the blog? Can we close the issue? |
I have not written any blogs yet. Too much vacationing. |
I opened this related PR. containers/conmon#211 |
Hello @rhatdan . For my simulations on log-loss i needed to change limit on log size - so created changes in my branch as master...pmoogi-redhat:supportforlogsizemax for enabling --log-opt max-size=xx option. It is found working fine as expected. i did some validation on log files written onto disk. This is my first change to podman repo. Kindly let me know if PR can be submitted here reflecting this change in case you find it useful and if it doesn't hurt other modules which are dependent on this repo. |
That change looks fine on the whole, feel free to make a PR and we can see about getting it landed. |
Yes @pmoogi-redhat Open a PR. |
/kind feature
Is there a way to make sure container logs do not grow indefinitely?
Would it be safe to remove ~/.local/share/containers/storage/overlay-containers/*/userdata/ctr.log while the container is running?
The text was updated successfully, but these errors were encountered: