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

Set Logging Options Maxsize #87

Open
kidneyweakx opened this issue Oct 2, 2023 · 0 comments
Open

Set Logging Options Maxsize #87

kidneyweakx opened this issue Oct 2, 2023 · 0 comments

Comments

@kidneyweakx
Copy link
Collaborator

What is the problem that you are trying to solve?

docker container taking all disk space when running a times.

新功能 Feature Request

container log need config log-opt https://docs.docker.com/config/containers/logging/configure/#configure-the-default-logging-driver

可能的解法 Proposed Solution

in all docker-compoese set the options max-size

version: '3'
services:
    app:
        ...
        logging:
            driver: "json-file"
            options:
                max-size: "100m"
                max-file: "10"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant