Skip to content
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

There is no max file option like Docker #23191

Closed
limoou opened this issue Jul 4, 2024 · 3 comments
Closed

There is no max file option like Docker #23191

limoou opened this issue Jul 4, 2024 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@limoou
Copy link

limoou commented Jul 4, 2024

Feature request description

Since there is a max size that can limit the size, why not add a max file to limit the quantity?

Suggest potential solution

A clear and concise description of what you want to happen.

Have you considered any alternatives?

A clear and concise description of any alternative solutions or features you've considered.

Additional context

Add any other context or screenshots about the feature request here.

@limoou limoou added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 4, 2024
@giuseppe
Copy link
Member

giuseppe commented Jul 4, 2024

What is max file option? Do you mean --ulimit nofile=SOFT:HARD ?

$ podman run --rm --ulimit nofile=100:100 fedora ulimit -n
100

@limoou
Copy link
Author

limoou commented Jul 4, 2024

What is max file option? Do you mean --ulimit nofile=SOFT:HARD ?

$ podman run --rm --ulimit nofile=100:100 fedora ulimit -n
100

Thank you for your reply.
Docker can use the specified max file=3 to rotate the number of files for log rotation
docker:
image
podman:
image

Podman does not have this option and can only use -- log opt path={path} in conjunction with logrotate to complete this function, which is obviously troublesome

@giuseppe
Copy link
Member

giuseppe commented Jul 4, 2024

thanks, that is already tracked here: containers/conmon#211

@giuseppe giuseppe closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2024
@stale-locking-app stale-locking-app bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Oct 3, 2024
@stale-locking-app stale-locking-app bot locked as resolved and limited conversation to collaborators Oct 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/feature Categorizes issue or PR as related to a new feature. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

No branches or pull requests

2 participants