Set Logging Options Maxsize #87

Open
opened 2023-10-02 04:00:02 -04:00 by kidneyweakx · 0 comments
kidneyweakx commented 2023-10-02 04:00:02 -04:00 (Migrated from github.com)

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"
### 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 in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cathayddt/bdk#87
No description provided.